@rolldown/binding-wasm32-wasi 1.3.2 → 1.3.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/binding-wasm32-wasi",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "cpu": [
5
5
  "wasm32"
6
6
  ],
@@ -887,8 +887,8 @@ export interface JSONSourceMap {
887
887
  * This value is prepended to the individual entries in the "source" field.
888
888
  */
889
889
  sourceRoot?: string
890
- /** A list of original sources used by the "mappings" entry. */
891
- sources: Array<string>
890
+ /** A list of original sources used by the "mappings" entry, with `None` for unknown names. */
891
+ sources: Array<string | undefined | null>
892
892
  /**
893
893
  * An optional list of source content, useful when the "source" can't be hosted.
894
894
  * The contents are listed in the same order as the sources in line 5. "null" may be used if some original sources should be retrieved by name.
@@ -912,7 +912,7 @@ export interface SourceMap {
912
912
  mappings: string
913
913
  names: Array<string>
914
914
  sourceRoot?: string
915
- sources: Array<string>
915
+ sources: Array<string | undefined | null>
916
916
  sourcesContent?: Array<string>
917
917
  version: number
918
918
  ignoreList?: Array<number>
@@ -1573,7 +1573,7 @@ export declare class BindingCallableBuiltinPlugin {
1573
1573
  constructor(plugin: BindingBuiltinPlugin)
1574
1574
  getOrder(hookName: string): string | null
1575
1575
  resolveId(id: string, importer?: string | undefined | null, options?: BindingHookJsResolveIdOptions | undefined | null): Promise<BindingHookJsResolveIdOutput | undefined | null>
1576
- load(id: string): Promise<BindingHookJsLoadOutput | undefined | null>
1576
+ load(id: string): Promise<BindingHookLoadOutput | undefined | null>
1577
1577
  transform(code: string, id: string, options: BindingTransformHookExtraArgs): Promise<BindingHookTransformOutput | undefined | null>
1578
1578
  watchChange(path: string, event: BindingJsWatchChangeEvent): Promise<undefined>
1579
1579
  }
@@ -1607,7 +1607,7 @@ export declare class BindingDecodedMap {
1607
1607
  }
1608
1608
 
1609
1609
  export declare class BindingDevEngine {
1610
- constructor(options: BindingBundlerOptions, devOptions?: BindingDevOptions | undefined | null)
1610
+ constructor(options: BindingBundlerOptions, devOptions: BindingDevOptions)
1611
1611
  run(): Promise<void>
1612
1612
  ensureCurrentBuildFinish(): Promise<void>
1613
1613
  getBundleState(): Promise<BindingBundleState>
@@ -2039,6 +2039,7 @@ export interface BindingChecksOptions {
2039
2039
  export interface BindingChunkImportMap {
2040
2040
  baseUrl?: string
2041
2041
  fileName?: string
2042
+ include?: Array<BindingStringOrRegex>
2042
2043
  }
2043
2044
 
2044
2045
  export declare enum BindingChunkModuleOrderBy {
@@ -2300,11 +2301,7 @@ export interface BindingEsmExternalRequirePluginConfig {
2300
2301
  }
2301
2302
 
2302
2303
  export interface BindingExperimentalDevModeOptions {
2303
- host?: string
2304
- port?: number
2305
2304
  implement: string
2306
- /** @deprecated Common runtime injection will be disabled by default in the future. */
2307
- skipCommonRuntimeInjection?: boolean
2308
2305
  lazy?: boolean
2309
2306
  hotUpdate?: boolean
2310
2307
  }
@@ -2348,12 +2345,6 @@ export interface BindingHookFilter {
2348
2345
  value?: Array<Array<BindingFilterToken>>
2349
2346
  }
2350
2347
 
2351
- export interface BindingHookJsLoadOutput {
2352
- code: string
2353
- map?: string
2354
- moduleSideEffects?: boolean | 'no-treeshake'
2355
- }
2356
-
2357
2348
  export interface BindingHookJsResolveIdOptions {
2358
2349
  isEntry?: boolean
2359
2350
  /**
@@ -2557,6 +2548,7 @@ export interface BindingInputOptions {
2557
2548
  makeAbsoluteExternalsRelative?: BindingMakeAbsoluteExternalsRelative
2558
2549
  devtools?: BindingDevtoolsOptions
2559
2550
  invalidateJsSideCache?: () => void
2551
+ resetJsModuleOptions?: (moduleIds: string[] | null) => void
2560
2552
  preserveEntrySignatures?: BindingPreserveEntrySignatures
2561
2553
  optimization?: BindingOptimization
2562
2554
  context?: string
@@ -2871,6 +2863,8 @@ export interface BindingPluginTiming {
2871
2863
  hook: string
2872
2864
  calls: number
2873
2865
  ms: number
2866
+ /** The longest single call. */
2867
+ maxMs: number
2874
2868
  maxInFlight: number
2875
2869
  /** How much of `ms` is double counted because calls overlapped. */
2876
2870
  overlapMs: number
@@ -2943,9 +2937,7 @@ export interface BindingResolveOptions {
2943
2937
  yarnPnp?: boolean
2944
2938
  }
2945
2939
 
2946
- export interface BindingSourcemap {
2947
- inner: string | BindingJsonSourcemap
2948
- }
2940
+ export type BindingSourcemap = string | BindingJsonSourcemap
2949
2941
 
2950
2942
  export interface BindingSourceMapOptions {
2951
2943
  /** The filename for the generated file (goes into `map.file`) */
Binary file