@xyd-js/content 0.1.0-xyd.5 → 0.1.0-xyd.7

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @xyd-js/content
2
2
 
3
+ ## 0.1.0-xyd.7
4
+
5
+ ### Patch Changes
6
+
7
+ - use react-router 7.1.1
8
+ - Updated dependencies
9
+ - @xyd-js/core@0.1.0-xyd.6
10
+
11
+ ## 0.1.0-xyd.6
12
+
13
+ ### Patch Changes
14
+
15
+ - another update
16
+ - Updated dependencies
17
+ - @xyd-js/core@0.1.0-xyd.5
18
+
3
19
  ## 0.1.0-xyd.5
4
20
 
5
21
  ### Patch Changes
package/dist/vite.d.ts CHANGED
@@ -209,7 +209,10 @@ interface ModuleInfo extends ModuleOptions {
209
209
 
210
210
  type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
211
211
 
212
- type CustomPluginOptions = Record<string, any>;
212
+ // eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style -- this is an interface so that it can be extended by plugins
213
+ interface CustomPluginOptions {
214
+ [plugin: string]: any;
215
+ }
213
216
 
214
217
  type LoggingFunctionWithPosition = (
215
218
  log: RollupLog | string | (() => RollupLog | string),
@@ -375,11 +378,28 @@ type WatchChangeHook = (
375
378
 
376
379
  type OutputBundle = Record<string, OutputAsset | OutputChunk>;
377
380
 
381
+ type PreRenderedChunkWithFileName = PreRenderedChunk & { fileName: string };
382
+
383
+ interface ImportedInternalChunk {
384
+ type: 'internal';
385
+ fileName: string;
386
+ resolvedImportPath: string;
387
+ chunk: PreRenderedChunk;
388
+ }
389
+
390
+ interface ImportedExternalChunk {
391
+ type: 'external';
392
+ fileName: string;
393
+ resolvedImportPath: string;
394
+ }
395
+
396
+ type DynamicImportTargetChunk = ImportedInternalChunk | ImportedExternalChunk;
397
+
378
398
  interface FunctionPluginHooks {
379
399
  augmentChunkHash: (this: PluginContext, chunk: RenderedChunk) => string | void;
380
400
  buildEnd: (this: PluginContext, error?: Error) => void;
381
401
  buildStart: (this: PluginContext, options: NormalizedInputOptions) => void;
382
- closeBundle: (this: PluginContext) => void;
402
+ closeBundle: (this: PluginContext, error?: Error) => void;
383
403
  closeWatcher: (this: PluginContext) => void;
384
404
  generateBundle: (
385
405
  this: PluginContext,
@@ -400,6 +420,9 @@ interface FunctionPluginHooks {
400
420
  format: InternalModuleFormat;
401
421
  moduleId: string;
402
422
  targetModuleId: string | null;
423
+ chunk: PreRenderedChunkWithFileName;
424
+ targetChunk: PreRenderedChunkWithFileName | null;
425
+ getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
403
426
  }
404
427
  ) => { left: string; right: string } | NullValue;
405
428
  renderError: (this: PluginContext, error?: Error) => void;
@@ -911,6 +934,7 @@ interface WatcherOptions {
911
934
  exclude?: string | RegExp | (string | RegExp)[];
912
935
  include?: string | RegExp | (string | RegExp)[];
913
936
  skipWrite?: boolean;
937
+ onInvalidate?: (id: string) => void;
914
938
  }
915
939
 
916
940
  interface AstNodeLocation {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/content",
3
- "version": "0.1.0-xyd.5",
3
+ "version": "0.1.0-xyd.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "unified": "^11.0.5",
27
27
  "unist-util-visit": "^5.0.0",
28
28
  "vfile": "^6.0.3",
29
- "@xyd-js/core": "0.1.0-xyd.4"
29
+ "@xyd-js/core": "0.1.0-xyd.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.7.8",