Skip to content

Commit

Permalink
[ci] release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 10, 2024
1 parent 4870d82 commit f776e10
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 50 deletions.
5 changes: 0 additions & 5 deletions .changeset/gentle-kids-worry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-panthers-notice.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/custom-routing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @inox-tools/inline-mod

## 1.0.2

### Patch Changes

- f2e76e2: Refactor internally to use new Inox Tools template

## 1.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-routing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inox-tools/custom-routing",
"version": "1.0.1",
"version": "1.0.2",
"description": "Define custom routing instead of Astro's default file-based routing.",
"keywords": [
"astro-integration",
Expand Down
74 changes: 37 additions & 37 deletions packages/custom-routing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,50 @@ import { resolve, sep as PATH_SEP } from 'node:path';
type CustomRoute = string; // | APIRoute;

type Options = {
strict: boolean;
routes: Record<string, CustomRoute>;
strict: boolean;
routes: Record<string, CustomRoute>;
};

function customRoutingInner({ strict, routes }: Options): AstroIntegration {
return {
name: '@inox-tools/custom-routing',
hooks: {
'astro:config:setup': ({ injectRoute }) => {
for (const [route, handle] of Object.entries(routes)) {
injectRoute({
entrypoint: handle,
pattern: route,
});
}
},
...(strict && {
'astro:build:setup': ({ vite, pages }) => {
const pagesFolder = resolve(vite.root ?? '', './src/pages') + PATH_SEP;
for (const page of pages.values()) {
const componentPath = resolve(vite.root ?? '', page.component);
if (componentPath.startsWith(pagesFolder)) {
throw new AstroError(
'Custom routing used alongside pages route.',
'Either use disable strict mode of custom routing or remove any file-based routes.'
);
}
}
},
}),
},
};
return {
name: '@inox-tools/custom-routing',
hooks: {
'astro:config:setup': ({ injectRoute }) => {
for (const [route, handle] of Object.entries(routes)) {
injectRoute({
entrypoint: handle,
pattern: route,
});
}
},
...(strict && {
'astro:build:setup': ({ vite, pages }) => {
const pagesFolder = resolve(vite.root ?? '', './src/pages') + PATH_SEP;
for (const page of pages.values()) {
const componentPath = resolve(vite.root ?? '', page.component);
if (componentPath.startsWith(pagesFolder)) {
throw new AstroError(
'Custom routing used alongside pages route.',
'Either use disable strict mode of custom routing or remove any file-based routes.'
);
}
}
},
}),
},
};
}

export function customRouting(routes: Options['routes']): AstroIntegration {
return customRoutingInner({
strict: false,
routes: routes,
});
return customRoutingInner({
strict: false,
routes: routes,
});
}

export function strictCustomRouting(routes: Options['routes']): AstroIntegration {
return customRoutingInner({
strict: true,
routes: routes,
});
return customRoutingInner({
strict: true,
routes: routes,
});
}
7 changes: 7 additions & 0 deletions packages/request-nanostores/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @inox-tools/request-nanostores

## 0.2.1

### Patch Changes

- Updated dependencies [4870d82]
- @inox-tools/request-state@0.3.0

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/request-nanostores/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inox-tools/request-nanostores",
"version": "0.2.0",
"version": "0.2.1",
"description": "Make your Nanostores concurrent safe and shared from server to client",
"keywords": [
"astro-integration",
Expand Down
6 changes: 6 additions & 0 deletions packages/request-state/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @inox-tools/request-state

## 0.3.0

### Minor Changes

- 4870d82: Fixes flash of page with unsynchronized state due to response streaming.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/request-state/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inox-tools/request-state",
"version": "0.2.0",
"version": "0.3.0",
"description": "Shared request state between server and client",
"keywords": [
"astro-integration",
Expand Down

0 comments on commit f776e10

Please sign in to comment.