@loaders.gl/scientific 5.0.0-beta.7 → 5.0.0-beta.8

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 (62) hide show
  1. package/dist/index.cjs +16 -16
  2. package/dist/index.cjs.map +2 -2
  3. package/dist/netcdf/bundled.cjs +1 -1
  4. package/dist/netcdf/index.cjs +1 -1
  5. package/dist/netcdf/index.cjs.map +1 -1
  6. package/dist/netcdf/netcdf-loader.cjs +1 -1
  7. package/dist/netcdf/netcdf-loader.js +1 -1
  8. package/dist/netcdf/netcdf-source-loader-types.cjs +2 -2
  9. package/dist/netcdf/netcdf-source-loader-types.d.ts +1 -1
  10. package/dist/netcdf/netcdf-source-loader-types.d.ts.map +1 -1
  11. package/dist/netcdf/netcdf-source-loader-types.js +3 -3
  12. package/dist/netcdf/netcdf-source-loader-types.js.map +1 -1
  13. package/dist/netcdf/netcdf-source-loader.cjs +1 -1
  14. package/dist/netcdf/netcdf-source-loader.d.ts +1 -1
  15. package/dist/netcdf/netcdf-source-loader.d.ts.map +1 -1
  16. package/dist/netcdf/netcdf-source-loader.js +2 -2
  17. package/dist/netcdf/netcdf-source-loader.js.map +1 -1
  18. package/dist/netcdf/unbundled.cjs +1 -1
  19. package/dist/netcdf.dev.js +33 -3
  20. package/dist/netcdf.min.js +4 -4
  21. package/dist/npy-loader-types.cjs +1 -1
  22. package/dist/npy-loader-types.js +1 -1
  23. package/dist/npy-loader.cjs +1 -1
  24. package/dist/npy-worker.js +1 -1
  25. package/dist/nrrd-loader-types.cjs +1 -1
  26. package/dist/nrrd-loader-types.js +1 -1
  27. package/dist/vtk-loader-types.cjs +1 -1
  28. package/dist/vtk-loader-types.js +1 -1
  29. package/dist/zarr/geo-zarr-source-loader.d.ts +1 -1
  30. package/dist/zarr/geo-zarr-source-loader.d.ts.map +1 -1
  31. package/dist/zarr/geo-zarr-source-loader.js +2 -2
  32. package/dist/zarr/geo-zarr-source-loader.js.map +1 -1
  33. package/dist/zarr/index.cjs +4 -4
  34. package/dist/zarr/index.cjs.map +1 -1
  35. package/dist/zarr/ome-zarr-source-loader.d.ts +1 -1
  36. package/dist/zarr/ome-zarr-source-loader.d.ts.map +1 -1
  37. package/dist/zarr/ome-zarr-source-loader.js +2 -2
  38. package/dist/zarr/ome-zarr-source-loader.js.map +1 -1
  39. package/dist/zarr/spatial-data-source.d.ts +1 -1
  40. package/dist/zarr/spatial-data-source.d.ts.map +1 -1
  41. package/dist/zarr/spatial-data-source.js +1 -1
  42. package/dist/zarr/spatial-data-source.js.map +1 -1
  43. package/dist/zarr/zarr-array-source.d.ts +1 -1
  44. package/dist/zarr/zarr-array-source.d.ts.map +1 -1
  45. package/dist/zarr/zarr-array-source.js +1 -1
  46. package/dist/zarr/zarr-array-source.js.map +1 -1
  47. package/dist/zarr/zarr-loader-types.cjs +9 -9
  48. package/dist/zarr/zarr-loader-types.cjs.map +2 -2
  49. package/dist/zarr/zarr-loader-types.d.ts +8 -8
  50. package/dist/zarr/zarr-loader-types.d.ts.map +1 -1
  51. package/dist/zarr/zarr-loader-types.js +9 -9
  52. package/dist/zarr/zarr-loader-types.js.map +1 -1
  53. package/dist/zarr.dev.js +36 -6
  54. package/dist/zarr.min.js +22 -22
  55. package/package.json +5 -5
  56. package/src/netcdf/netcdf-source-loader-types.ts +2 -2
  57. package/src/netcdf/netcdf-source-loader.ts +1 -1
  58. package/src/zarr/geo-zarr-source-loader.ts +1 -1
  59. package/src/zarr/ome-zarr-source-loader.ts +1 -1
  60. package/src/zarr/spatial-data-source.ts +1 -1
  61. package/src/zarr/zarr-array-source.ts +1 -1
  62. package/src/zarr/zarr-loader-types.ts +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/scientific",
3
- "version": "5.0.0-beta.7",
3
+ "version": "5.0.0-beta.8",
4
4
  "description": "Scientific NumPy arrays and sources for NetCDF, Zarr, GRIB2, HDF5, and VTK",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -113,9 +113,9 @@
113
113
  "build-cjs-nrrd": "esbuild src/nrrd-loader.ts --bundle --format=cjs --platform=node --target=node22 --outfile=dist/nrrd-loader.cjs --external:@loaders.gl/*"
114
114
  },
115
115
  "dependencies": {
116
- "@loaders.gl/documents": "5.0.0-beta.7",
117
- "@math.gl/core": "5.0.0-beta.7",
118
- "@math.gl/geospatial": "5.0.0-beta.7",
116
+ "@loaders.gl/documents": "5.0.0-beta.8",
117
+ "@math.gl/core": "5.0.0-beta.8",
118
+ "@math.gl/geospatial": "5.0.0-beta.8",
119
119
  "h5wasm": "^0.10.3",
120
120
  "zarr": "^0.5.0",
121
121
  "zarrita": "~0.7.1"
@@ -142,5 +142,5 @@
142
142
  "cdf",
143
143
  "nc"
144
144
  ],
145
- "gitHead": "66290be3efdcaed637e7f1b18f30a69b2bd935c6"
145
+ "gitHead": "1f2236bb9c47e76b89cd2b8eae44844f57f53d24"
146
146
  }
@@ -33,13 +33,13 @@ export const NetCDFSourceLoader = {
33
33
  defaultOptions: {},
34
34
  testURL: (url: string): boolean => /\.(?:cdf|nc)(?:$|[?#])/i.test(url),
35
35
  preload: preloadNetCDFSourceLoader,
36
- createDataSource(
36
+ createDataSourceSync(
37
37
  _data: string | Blob,
38
38
  _options: NetCDFSourceOptions,
39
39
  _coreApi?: CoreAPI
40
40
  ): NetCDFSource {
41
41
  throw new Error(
42
- 'NetCDFSourceLoader requires async load() or an explicit @loaders.gl/scientific/netcdf/netcdf-source-loader import'
42
+ 'NetCDFSourceLoader requires async createDataSource() or an explicit @loaders.gl/scientific/netcdf/netcdf-source-loader import'
43
43
  );
44
44
  }
45
45
  } as const satisfies SourceLoader<NetCDFSource>;
@@ -253,7 +253,7 @@ export const NetCDFSourceLoaderWithParser = {
253
253
  options: {},
254
254
  defaultOptions: {},
255
255
  testURL: (url: string): boolean => /\.(?:cdf|nc)(?:$|[?#])/i.test(url),
256
- createDataSource: (data: string | Blob, options: NetCDFSourceOptions): NetCDFSource =>
256
+ createDataSourceSync: (data: string | Blob, options: NetCDFSourceOptions): NetCDFSource =>
257
257
  new NetCDFSource(data, options)
258
258
  } as const satisfies SourceLoader<NetCDFSource>;
259
259
 
@@ -184,7 +184,7 @@ export const GeoZarrSourceLoaderWithParser = {
184
184
  },
185
185
 
186
186
  testURL: (url: string): boolean => /\.zarr(?:$|[/?#])/i.test(url),
187
- createDataSource: (
187
+ createDataSourceSync: (
188
188
  data: string,
189
189
  options: GeoZarrSourceLoaderOptions,
190
190
  coreApi?: CoreAPI
@@ -329,7 +329,7 @@ export const OMEZarrSourceLoaderWithParser = {
329
329
  },
330
330
 
331
331
  testURL: (url: string): boolean => /\.zarr(?:$|[/?#])/i.test(url),
332
- createDataSource: (
332
+ createDataSourceSync: (
333
333
  data: string,
334
334
  options: ZarrSourceLoaderOptions,
335
335
  coreApi?: CoreAPI
@@ -102,7 +102,7 @@ export const SpatialDataSourceLoaderWithParser = {
102
102
  }
103
103
  },
104
104
  testURL: (url: string): boolean => /\.zarr(?:$|[/?#])/i.test(url),
105
- createDataSource: (
105
+ createDataSourceSync: (
106
106
  data: string,
107
107
  options: SpatialDataSourceLoaderOptions,
108
108
  coreApi?: CoreAPI
@@ -105,7 +105,7 @@ export const ZarrArraySourceLoaderWithParser = {
105
105
  zarrArray: {path: undefined!, dimensions: undefined!}
106
106
  },
107
107
  testURL: (url: string): boolean => /\.zarr(?:$|[/?#])/i.test(url),
108
- createDataSource: (
108
+ createDataSourceSync: (
109
109
  data: string,
110
110
  options: ZarrArraySourceLoaderOptions,
111
111
  coreApi?: CoreAPI
@@ -37,13 +37,13 @@ export const OMEZarrSourceLoader = {
37
37
  preload: async () =>
38
38
  (await import('@loaders.gl/scientific/zarr/ome-zarr-source-loader'))
39
39
  .OMEZarrSourceLoaderWithParser,
40
- createDataSource(
40
+ createDataSourceSync(
41
41
  _data: string,
42
42
  _options: ZarrSourceLoaderOptions,
43
43
  _coreApi?: CoreAPI
44
44
  ): OMEZarrImageSource {
45
45
  throw new Error(
46
- 'OMEZarrSourceLoader requires async load() or an explicit @loaders.gl/scientific/zarr/ome-zarr-source-loader import'
46
+ 'OMEZarrSourceLoader requires async createDataSource() or an explicit @loaders.gl/scientific/zarr/ome-zarr-source-loader import'
47
47
  );
48
48
  }
49
49
  } as const satisfies SourceLoader<OMEZarrImageSource>;
@@ -85,13 +85,13 @@ export const GeoZarrSourceLoader = {
85
85
  preload: async () =>
86
86
  (await import('@loaders.gl/scientific/zarr/geo-zarr-source-loader'))
87
87
  .GeoZarrSourceLoaderWithParser,
88
- createDataSource(
88
+ createDataSourceSync(
89
89
  _data: string,
90
90
  _options: GeoZarrSourceLoaderOptions,
91
91
  _coreApi?: CoreAPI
92
92
  ): GeoZarrRasterSource {
93
93
  throw new Error(
94
- 'GeoZarrSourceLoader requires async load() or an explicit @loaders.gl/scientific/zarr/geo-zarr-source-loader import'
94
+ 'GeoZarrSourceLoader requires async createDataSource() or an explicit @loaders.gl/scientific/zarr/geo-zarr-source-loader import'
95
95
  );
96
96
  }
97
97
  } as const satisfies SourceLoader<GeoZarrRasterSource>;
@@ -120,13 +120,13 @@ export const ZarrArraySourceLoader = {
120
120
  testURL: (url: string): boolean => /\.zarr(?:$|[/?#])/i.test(url),
121
121
  preload: async () =>
122
122
  (await import('@loaders.gl/scientific/zarr/zarr-array-source')).ZarrArraySourceLoaderWithParser,
123
- createDataSource(
123
+ createDataSourceSync(
124
124
  _data: string,
125
125
  _options: ZarrArraySourceLoaderOptions,
126
126
  _coreApi?: CoreAPI
127
127
  ): ZarrArraySource {
128
128
  throw new Error(
129
- 'ZarrArraySourceLoader requires async load() or an explicit @loaders.gl/scientific/zarr/zarr-array-source import'
129
+ 'ZarrArraySourceLoader requires async createDataSource() or an explicit @loaders.gl/scientific/zarr/zarr-array-source import'
130
130
  );
131
131
  }
132
132
  } as const satisfies SourceLoader<ZarrArraySource>;
@@ -154,13 +154,13 @@ export const SpatialDataSourceLoader = {
154
154
  preload: async () =>
155
155
  (await import('@loaders.gl/scientific/zarr/spatial-data-source'))
156
156
  .SpatialDataSourceLoaderWithParser,
157
- createDataSource(
157
+ createDataSourceSync(
158
158
  _data: string,
159
159
  _options: SpatialDataSourceLoaderOptions,
160
160
  _coreApi?: CoreAPI
161
161
  ): SpatialDataSource {
162
162
  throw new Error(
163
- 'SpatialDataSourceLoader requires async load() or an explicit @loaders.gl/scientific/zarr/spatial-data-source import'
163
+ 'SpatialDataSourceLoader requires async createDataSource() or an explicit @loaders.gl/scientific/zarr/spatial-data-source import'
164
164
  );
165
165
  }
166
166
  } as const satisfies SourceLoader<SpatialDataSource>;