@qwik.dev/router 2.0.0-beta.45 → 2.0.0-beta.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @public */
5
5
  export declare function azureSwaAdapter(opts?: AzureSwaAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @beta */
5
5
  export declare function bunServerAdapter(opts?: bunServerAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @public */
5
5
  export declare function cloudRunAdapter(opts?: CloudRunAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @public */
5
5
  export declare function cloudflarePagesAdapter(opts?: CloudflarePagesAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @beta */
5
5
  export declare function denoServerAdapter(opts?: DenoServerAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @public */
5
5
  export declare function netlifyEdgeAdapter(opts?: NetlifyEdgeAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  /** @beta */
5
5
  export declare function nodeServerAdapter(opts?: NodeServerAdapterOptions): any;
@@ -1,5 +1,5 @@
1
1
  import { Plugin as Plugin_2 } from 'vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
  import { UserConfig } from 'vite';
4
4
 
5
5
  /** @public */
@@ -166,7 +166,7 @@ function viteAdapter(opts) {
166
166
  basePathname,
167
167
  rootDir,
168
168
  ...opts.ssg,
169
- maxWorkers: opts.maxWorkers
169
+ maxWorkers: opts.maxWorkers ?? opts.ssg?.maxWorkers
170
170
  };
171
171
  for (const key of Object.keys(ssgOpts)) if (ssgOpts[key] === void 0) delete ssgOpts[key];
172
172
  return [
@@ -1,4 +1,4 @@
1
- import type { SsgRenderOptions } from '../../../ssg';
1
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
2
2
 
3
3
  /** @public */
4
4
  export declare function ssgAdapter(opts: SsgAdapterOptions): any;
@@ -1,5 +1,5 @@
1
- import { ServerAdapterOptions } from '../../shared/vite';
2
- import type { SsgRenderOptions } from 'packages/qwik-router/src/ssg';
1
+ import { ServerAdapterOptions } from '../../shared/vite/index.js';
2
+ import type { SsgRenderOptions } from '../../../ssg/index.js';
3
3
 
4
4
  export { SsgRenderOptions }
5
5
 
package/lib/chunks/fs.mjs CHANGED
@@ -129,15 +129,15 @@ function isServiceWorkerName(extlessName) {
129
129
  function isEntryName(extlessName) {
130
130
  return extlessName === "entry";
131
131
  }
132
- /** The boundary kind, ignoring any `@x`/`!` modifier: `'404'`, `'error'`, or undefined. */
133
- function errorBoundaryName(extlessName) {
132
+ /** Which caught error a page renders (`'404'` or `'error'`), ignoring `@x`/`!` modifiers. */
133
+ function caughtErrorName(extlessName) {
134
134
  const match = /^(error|404)(?:|!|@.+)$/.exec(extlessName);
135
135
  return match ? match[1] : void 0;
136
136
  }
137
137
  function isErrorName(extlessName) {
138
- return errorBoundaryName(extlessName) !== void 0;
138
+ return caughtErrorName(extlessName) !== void 0;
139
139
  }
140
140
  function isGroupedLayoutName(dirName, warn = true) {
141
141
  return dirName.startsWith("(") && dirName.endsWith(")");
142
142
  }
143
- export { normalizePath as _, getPathnameFromDirPath as a, parseRouteIndexName as b, isIndexModule as c, isMenuFileName as d, isModuleExt as f, isServiceWorkerName as g, isPluginModule as h, getMenuPathname as i, isLayoutModule as l, isPageModuleExt as m, errorBoundaryName as n, isEntryName as o, isPageExt as p, getExtension as r, isErrorName as s, createFileId as t, isMarkdownExt as u, normalizePathKey as v, removeExtension as x, normalizePathSlash as y };
143
+ export { normalizePath as _, getPathnameFromDirPath as a, parseRouteIndexName as b, isIndexModule as c, isMenuFileName as d, isModuleExt as f, isServiceWorkerName as g, isPluginModule as h, getMenuPathname as i, isLayoutModule as l, isPageModuleExt as m, createFileId as n, isEntryName as o, isPageExt as p, getExtension as r, isErrorName as s, caughtErrorName as t, isMarkdownExt as u, normalizePathKey as v, removeExtension as x, normalizePathSlash as y };