@ilha/router 0.2.3 → 0.2.5

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.
Files changed (2) hide show
  1. package/dist/vite.d.ts +80 -19
  2. package/package.json +3 -3
package/dist/vite.d.ts CHANGED
@@ -17,7 +17,7 @@ import SassEmbedded from "sass-embedded";
17
17
  import Less from "less";
18
18
  import Stylus from "stylus";
19
19
 
20
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/hmrPayload.d.ts
20
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/hmrPayload.d.ts
21
21
  type HotPayload = ConnectedPayload | PingPayload | UpdatePayload | FullReloadPayload | CustomPayload | ErrorPayload | PrunePayload;
22
22
  interface ConnectedPayload {
23
23
  type: 'connected';
@@ -82,7 +82,7 @@ interface ErrorPayload {
82
82
  };
83
83
  }
84
84
  //#endregion
85
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts
85
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts
86
86
  //#region src/shared/invokeMethods.d.ts
87
87
  interface FetchFunctionOptions {
88
88
  cached?: boolean;
@@ -135,7 +135,7 @@ interface ViteFetchResult {
135
135
  invalidate: boolean;
136
136
  }
137
137
  //#endregion
138
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/customEvent.d.ts
138
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/customEvent.d.ts
139
139
  interface CustomEventMap {
140
140
  // client events
141
141
  'vite:beforeUpdate': UpdatePayload;
@@ -196,7 +196,7 @@ type ForwardConsolePayload = {
196
196
  */
197
197
  type InferCustomEventPayload<T extends string> = T extends keyof CustomEventMap ? CustomEventMap[T] : any;
198
198
  //#endregion
199
- //#region ../../node_modules/.bun/rolldown@1.0.0-rc.13/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts
199
+ //#region ../../node_modules/.bun/rolldown@1.0.0-rc.17/node_modules/rolldown/dist/shared/logging-C6h4g8dA.d.mts
200
200
  //#region src/log/logging.d.ts
201
201
  /** @inline */
202
202
  type LogLevel$1 = "info" | "debug" | "warn";
@@ -246,7 +246,7 @@ interface RolldownError extends RolldownLog {
246
246
  }
247
247
  type LogOrStringHandler = (level: LogLevelWithError, log: RolldownLogWithString) => void; //#endregion
248
248
  //#endregion
249
- //#region ../../node_modules/.bun/@oxc-project+types@0.123.0/node_modules/@oxc-project/types/types.d.ts
249
+ //#region ../../node_modules/.bun/@oxc-project+types@0.127.0/node_modules/@oxc-project/types/types.d.ts
250
250
  // Auto-generated code, DO NOT EDIT DIRECTLY!
251
251
  // To edit this generated file you have to edit `tasks/ast_tools/src/generators/typescript.rs`.
252
252
  interface Program extends Span {
@@ -1545,7 +1545,7 @@ type UnaryOperator = "+" | "-" | "!" | "~" | "typeof" | "void" | "delete";
1545
1545
  type UpdateOperator = "++" | "--";
1546
1546
  type Node$1 = Program | IdentifierName | IdentifierReference | BindingIdentifier | LabelIdentifier | ThisExpression | ArrayExpression | ObjectExpression | ObjectProperty | TemplateLiteral | TaggedTemplateExpression | TemplateElement | ComputedMemberExpression | StaticMemberExpression | PrivateFieldExpression | CallExpression | NewExpression | MetaProperty | SpreadElement | UpdateExpression | UnaryExpression | BinaryExpression | PrivateInExpression | LogicalExpression | ConditionalExpression | AssignmentExpression | ArrayAssignmentTarget | ObjectAssignmentTarget | AssignmentTargetRest | AssignmentTargetWithDefault | AssignmentTargetPropertyIdentifier | AssignmentTargetPropertyProperty | SequenceExpression | Super | AwaitExpression | ChainExpression | ParenthesizedExpression | Directive | Hashbang | BlockStatement | VariableDeclaration | VariableDeclarator | EmptyStatement | ExpressionStatement | IfStatement | DoWhileStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | ContinueStatement | BreakStatement | ReturnStatement | WithStatement | SwitchStatement | SwitchCase | LabeledStatement | ThrowStatement | TryStatement | CatchClause | DebuggerStatement | AssignmentPattern | ObjectPattern | BindingProperty | ArrayPattern | BindingRestElement | Function$1 | FunctionBody | ArrowFunctionExpression | YieldExpression | Class | ClassBody | MethodDefinition | PropertyDefinition | PrivateIdentifier | StaticBlock | AccessorProperty | ImportExpression | ImportDeclaration | ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportAttribute | ExportNamedDeclaration | ExportDefaultDeclaration | ExportAllDeclaration | ExportSpecifier | V8IntrinsicExpression | BooleanLiteral | NullLiteral | NumericLiteral | StringLiteral | BigIntLiteral | RegExpLiteral | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXOpeningFragment | JSXClosingFragment | JSXNamespacedName | JSXMemberExpression | JSXExpressionContainer | JSXEmptyExpression | JSXAttribute | JSXSpreadAttribute | JSXIdentifier | JSXSpreadChild | JSXText | TSThisParameter | TSEnumDeclaration | TSEnumBody | TSEnumMember | TSTypeAnnotation | TSLiteralType | TSConditionalType | TSUnionType | TSIntersectionType | TSParenthesizedType | TSTypeOperator | TSArrayType | TSIndexedAccessType | TSTupleType | TSNamedTupleMember | TSOptionalType | TSRestType | TSAnyKeyword | TSStringKeyword | TSBooleanKeyword | TSNumberKeyword | TSNeverKeyword | TSIntrinsicKeyword | TSUnknownKeyword | TSNullKeyword | TSUndefinedKeyword | TSVoidKeyword | TSSymbolKeyword | TSThisType | TSObjectKeyword | TSBigIntKeyword | TSTypeReference | TSQualifiedName | TSTypeParameterInstantiation | TSTypeParameter | TSTypeParameterDeclaration | TSTypeAliasDeclaration | TSClassImplements | TSInterfaceDeclaration | TSInterfaceBody | TSPropertySignature | TSIndexSignature | TSCallSignatureDeclaration | TSMethodSignature | TSConstructSignatureDeclaration | TSIndexSignatureName | TSInterfaceHeritage | TSTypePredicate | TSModuleDeclaration | TSGlobalDeclaration | TSModuleBlock | TSTypeLiteral | TSInferType | TSTypeQuery | TSImportType | TSImportTypeQualifiedName | TSFunctionType | TSConstructorType | TSMappedType | TSTemplateLiteralType | TSAsExpression | TSSatisfiesExpression | TSTypeAssertion | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | Decorator | TSExportAssignment | TSNamespaceExportDeclaration | TSInstantiationExpression | JSDocNullableType | JSDocNonNullableType | JSDocUnknownType | ParamPattern;
1547
1547
  //#endregion
1548
- //#region ../../node_modules/.bun/rolldown@1.0.0-rc.13/node_modules/rolldown/dist/shared/binding-DUEnSb0A.d.mts
1548
+ //#region ../../node_modules/.bun/rolldown@1.0.0-rc.17/node_modules/rolldown/dist/shared/binding-zH1vcmbM.d.mts
1549
1549
  interface CodegenOptions {
1550
1550
  /**
1551
1551
  * Remove whitespace.
@@ -1697,6 +1697,15 @@ interface TreeShakeOptions {
1697
1697
  * @default 'always'
1698
1698
  */
1699
1699
  propertyReadSideEffects?: boolean | 'always';
1700
+ /**
1701
+ * Whether property write accesses (assignments to member expressions) have side effects.
1702
+ *
1703
+ * When false, assignments like `obj.prop = value` are considered side-effect-free
1704
+ * (assuming the object and value expressions themselves are side-effect-free).
1705
+ *
1706
+ * @default true
1707
+ */
1708
+ propertyWriteSideEffects?: boolean;
1700
1709
  /**
1701
1710
  * Whether accessing a global variable has side effects.
1702
1711
  *
@@ -2182,6 +2191,24 @@ interface TypeScriptOptions {
2182
2191
  * Defaults to `false`.
2183
2192
  */
2184
2193
  removeClassFieldsWithoutInitializer?: boolean;
2194
+ /**
2195
+ * When true, optimize const enums by inlining their values at usage sites
2196
+ * and removing the enum declaration.
2197
+ *
2198
+ * @default false
2199
+ */
2200
+ optimizeConstEnums?: boolean;
2201
+ /**
2202
+ * When true, optimize regular (non-const) enums by inlining their member
2203
+ * accesses at usage sites when the member value is statically known.
2204
+ *
2205
+ * Non-exported enum declarations are also removed when all members are
2206
+ * evaluable and no references to the enum as a runtime value exist
2207
+ * (e.g., `console.log(Foo)`, `typeof Foo`, or passing the enum as an argument).
2208
+ *
2209
+ * @default false
2210
+ */
2211
+ optimizeEnums?: boolean;
2185
2212
  /**
2186
2213
  * Also generate a `.d.ts` declaration file for TypeScript files.
2187
2214
  *
@@ -2560,7 +2587,7 @@ interface ViteImportGlobMeta {
2560
2587
  isSubImportsPattern?: boolean;
2561
2588
  } //#endregion
2562
2589
  //#endregion
2563
- //#region ../../node_modules/.bun/@rolldown+pluginutils@1.0.0-rc.13/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
2590
+ //#region ../../node_modules/.bun/@rolldown+pluginutils@1.0.0-rc.17/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.d.ts
2564
2591
  type StringOrRegExp$1 = string | RegExp;
2565
2592
  type PluginModuleType = 'js' | 'jsx' | 'ts' | 'tsx' | 'json' | 'text' | 'base64' | 'dataurl' | 'binary' | 'empty' | (string & {});
2566
2593
  type FilterExpression = And | Or | Not | Id | ImporterId | ModuleType$1 | Code | Query;
@@ -2622,7 +2649,7 @@ declare class Exclude$1 {
2622
2649
  constructor(expr: FilterExpression);
2623
2650
  }
2624
2651
  //#endregion
2625
- //#region ../../node_modules/.bun/rolldown@1.0.0-rc.13/node_modules/rolldown/dist/shared/define-config-DhJZwTRw.d.mts
2652
+ //#region ../../node_modules/.bun/rolldown@1.0.0-rc.17/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts
2626
2653
  //#region src/types/misc.d.ts
2627
2654
  /** @inline */
2628
2655
  type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
@@ -2768,8 +2795,21 @@ interface SourceMap$1 {
2768
2795
  }
2769
2796
  /** @category Plugin APIs */
2770
2797
  interface RenderedModule {
2798
+ /**
2799
+ * The rendered code of this module.
2800
+ *
2801
+ * The unused variables and functions are removed.
2802
+ */
2771
2803
  readonly code: string | null;
2804
+ /**
2805
+ * The length of the rendered code of this module.
2806
+ */
2772
2807
  renderedLength: number;
2808
+ /**
2809
+ * The list of exported names from this module.
2810
+ *
2811
+ * The names that are not used are not included.
2812
+ */
2773
2813
  renderedExports: string[];
2774
2814
  }
2775
2815
  /**
@@ -3568,6 +3608,12 @@ interface OutputOptions {
3568
3608
  */
3569
3609
  strict?: boolean | "auto";
3570
3610
  }
3611
+ /**
3612
+ * Built-in module tag names computed by rolldown.
3613
+ *
3614
+ * - `'$initial'` — the module is statically imported by at least one user-defined entry point, or is part of its static dependency chain.
3615
+ */
3616
+ type BuiltinModuleTag = "$initial";
3571
3617
  type CodeSplittingGroup = {
3572
3618
  /**
3573
3619
  * Name of the group. It will be also used as the name of the chunk and replace the `[name]` placeholder in the {@linkcode OutputOptions.chunkFileNames | output.chunkFileNames} option.
@@ -3731,6 +3777,21 @@ type CodeSplittingGroup = {
3731
3777
  * @default 0
3732
3778
  */
3733
3779
  entriesAwareMergeThreshold?: number;
3780
+ /**
3781
+ * Filter modules by tags. Only modules that have **all** specified tags
3782
+ * are captured by this group. Combines with `test` and other filters —
3783
+ * a module must match all criteria.
3784
+ *
3785
+ * Built-in tags: `'$initial'` (module is statically imported by a user-defined entry or part of its dependency chain).
3786
+ *
3787
+ * @see {@link https://rolldown.rs/in-depth/manual-code-splitting | Manual Code Splitting}
3788
+ *
3789
+ * @example
3790
+ * ```js
3791
+ * { name: 'initial-deps', tags: ['$initial'], maxSize: 1048576 }
3792
+ * ```
3793
+ */
3794
+ tags?: BuiltinModuleTag[];
3734
3795
  };
3735
3796
  /**
3736
3797
  * Alias for {@linkcode CodeSplittingGroup}. Use this type for the `codeSplitting.groups` option.
@@ -4918,7 +4979,7 @@ interface ExistingRawSourceMap {
4918
4979
  mappings: string;
4919
4980
  names?: string[];
4920
4981
  sources?: (string | null)[];
4921
- sourcesContent?: (string | null)[];
4982
+ sourcesContent?: (string | null | undefined)[];
4922
4983
  sourceRoot?: string;
4923
4984
  version?: number;
4924
4985
  x_google_ignoreList?: number[];
@@ -6167,7 +6228,7 @@ interface RolldownOptions extends InputOptions {
6167
6228
  * @category Config
6168
6229
  */
6169
6230
  //#endregion
6170
- //#region ../../node_modules/.bun/rolldown@1.0.0-rc.13/node_modules/rolldown/dist/shared/transform-Kz3D2LbX.d.mts
6231
+ //#region ../../node_modules/.bun/rolldown@1.0.0-rc.17/node_modules/rolldown/dist/shared/transform-DgZ3paSD.d.mts
6171
6232
  //#endregion
6172
6233
  //#region src/utils/transform.d.ts
6173
6234
  /**
@@ -6203,13 +6264,13 @@ declare global {
6203
6264
  interface URL {}
6204
6265
  }
6205
6266
  //#endregion
6206
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/internal/esbuildOptions.d.ts
6267
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/internal/esbuildOptions.d.ts
6207
6268
  /* eslint-enable @typescript-eslint/ban-ts-comment */
6208
6269
  type EsbuildTarget = string | string[];
6209
6270
  type EsbuildTransformOptions = esbuild.TransformOptions;
6210
6271
  type DepsOptimizerEsbuildOptions = Omit<esbuild.BuildOptions, 'bundle' | 'entryPoints' | 'external' | 'write' | 'watch' | 'outdir' | 'outfile' | 'outbase' | 'outExtension' | 'metafile'>;
6211
6272
  //#endregion
6212
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/metadata.d.ts
6273
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/metadata.d.ts
6213
6274
  interface AssetMetadata {
6214
6275
  importedAssets: Set<string>;
6215
6276
  importedCss: Set<string>;
@@ -6252,16 +6313,16 @@ declare module 'rolldown' {
6252
6313
  }
6253
6314
  }
6254
6315
  //#endregion
6255
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/internal/terserOptions.d.ts
6316
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/internal/terserOptions.d.ts
6256
6317
  /* eslint-enable @typescript-eslint/ban-ts-comment */
6257
6318
  type TerserMinifyOptions = Terser.MinifyOptions;
6258
6319
  //#endregion
6259
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/internal/lightningcssOptions.d.ts
6320
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/internal/lightningcssOptions.d.ts
6260
6321
  /* eslint-enable @typescript-eslint/ban-ts-comment */
6261
6322
  type LightningCSSOptions = Omit<Lightningcss.BundleAsyncOptions<Lightningcss.CustomAtRules>, 'filename' | 'resolver' | 'minify' | 'sourceMap' | 'analyzeDependencies' // properties not overridden by Vite, but does not make sense to set by end users
6262
6323
  | 'inputSourceMap' | 'projectRoot'>;
6263
6324
  //#endregion
6264
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts
6325
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts
6265
6326
  /* eslint-enable @typescript-eslint/ban-ts-comment */
6266
6327
  // https://github.com/type-challenges/type-challenges/issues/29285
6267
6328
  type IsAny<T> = boolean extends (T extends never ? true : false) ? true : false;
@@ -6280,7 +6341,7 @@ declare global {
6280
6341
  interface HTMLLinkElement {}
6281
6342
  }
6282
6343
  //#endregion
6283
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/types/importGlob.d.ts
6344
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/types/importGlob.d.ts
6284
6345
  /**
6285
6346
  * Declare Worker in case DOM is not added to the tsconfig lib causing
6286
6347
  * Worker interface is not defined. For developers with DOM lib added,
@@ -6291,10 +6352,10 @@ declare global {
6291
6352
  interface Worker {}
6292
6353
  }
6293
6354
  //#endregion
6294
- //#region ../../node_modules/.bun/vite@8.0.7+fbe26fc61c3e12f7/node_modules/vite/dist/node/index.d.ts
6355
+ //#region ../../node_modules/.bun/vite@8.0.10+9357385a17cbd143/node_modules/vite/dist/node/index.d.ts
6295
6356
  //#region \0rolldown/runtime.js
6296
6357
  //#endregion
6297
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.13_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
6358
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
6298
6359
  //#region src/node/cli-commands.d.ts
6299
6360
  interface StartOptions {
6300
6361
  root?: string;
@@ -6303,7 +6364,7 @@ interface StartOptions {
6303
6364
  port?: string | number;
6304
6365
  open?: boolean;
6305
6366
  } //#endregion
6306
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.13_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
6367
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
6307
6368
  //#region src/node/config.d.ts
6308
6369
  interface DevToolsConfig extends Partial<StartOptions> {
6309
6370
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilha/router",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "A tiny SPA router for Ilha",
5
5
  "license": "MIT",
6
6
  "author": "Ryuz <ryuzer@proton.me>",
@@ -27,10 +27,10 @@
27
27
  "test": "bun test"
28
28
  },
29
29
  "dependencies": {
30
- "ilha": "0.3.1",
30
+ "ilha": "0.4.1",
31
31
  "rou3": "0.8.1"
32
32
  },
33
33
  "devDependencies": {
34
- "vite": "^8.0.7"
34
+ "vite": "^8.0.10"
35
35
  }
36
36
  }