@earthmover/icechunk 1.0.3 → 2.0.0-alpha.2
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/README.md +28 -97
- package/index.d.ts +50 -1
- package/index.js +223 -52
- package/package.json +38 -32
- package/LICENSE +0 -21
package/README.md
CHANGED
|
@@ -1,112 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Icechunk JS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
JavaScript/TypeScript library for Icechunk Zarr Stores
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Status: Early development.** In-memory storage works. Cloud storage backends coming soon.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Getting Started
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
4. Run `yarn napi rename -n [@your-scope/package-name] -b [binary-name]` command under the project folder to rename your package.
|
|
9
|
+
```typescript
|
|
10
|
+
import { Repository, Storage } from '@earthmover/icechunk'
|
|
11
|
+
import * as zarr from 'zarrita'
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
const storage = await Storage.newInMemory()
|
|
14
|
+
const repo = await Repository.create(storage)
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Ability
|
|
21
|
-
|
|
22
|
-
### Build
|
|
23
|
-
|
|
24
|
-
After `yarn build/npm run build` command, you can see `package-template.[darwin|win32|linux].node` file in project root. This is the native addon built from [lib.rs](./src/lib.rs).
|
|
25
|
-
|
|
26
|
-
### Test
|
|
27
|
-
|
|
28
|
-
With [ava](https://github.com/avajs/ava), run `yarn test/npm run test` to testing native addon. You can also switch to another testing framework if you want.
|
|
29
|
-
|
|
30
|
-
### CI
|
|
31
|
-
|
|
32
|
-
With GitHub Actions, each commit and pull request will be built and tested automatically in [`node@20`, `@node22`] x [`macOS`, `Linux`, `Windows`] matrix. You will never be afraid of the native addon broken in these platforms.
|
|
33
|
-
|
|
34
|
-
### Release
|
|
35
|
-
|
|
36
|
-
Release native package is very difficult in old days. Native packages may ask developers who use it to install `build toolchain` like `gcc/llvm`, `node-gyp` or something more.
|
|
37
|
-
|
|
38
|
-
With `GitHub actions`, we can easily prebuild a `binary` for major platforms. And with `N-API`, we should never be afraid of **ABI Compatible**.
|
|
39
|
-
|
|
40
|
-
The other problem is how to deliver prebuild `binary` to users. Downloading it in `postinstall` script is a common way that most packages do it right now. The problem with this solution is it introduced many other packages to download binary that has not been used by `runtime codes`. The other problem is some users may not easily download the binary from `GitHub/CDN` if they are behind a private network (But in most cases, they have a private NPM mirror).
|
|
41
|
-
|
|
42
|
-
In this package, we choose a better way to solve this problem. We release different `npm packages` for different platforms. And add it to `optionalDependencies` before releasing the `Major` package to npm.
|
|
43
|
-
|
|
44
|
-
`NPM` will choose which native package should download from `registry` automatically. You can see [npm](./npm) dir for details. And you can also run `yarn add @napi-rs/package-template` to see how it works.
|
|
45
|
-
|
|
46
|
-
## Develop requirements
|
|
47
|
-
|
|
48
|
-
- Install the latest `Rust`
|
|
49
|
-
- Install `Node.js@10+` which fully supported `Node-API`
|
|
50
|
-
- Install `yarn@1.x`
|
|
51
|
-
|
|
52
|
-
## Test in local
|
|
53
|
-
|
|
54
|
-
- yarn
|
|
55
|
-
- yarn build
|
|
56
|
-
- yarn test
|
|
57
|
-
|
|
58
|
-
And you will see:
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
$ ava --verbose
|
|
16
|
+
const session = await repo.writableSession('main')
|
|
17
|
+
const store = session.store
|
|
62
18
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
19
|
+
// zarrita uses the store directly via duck-typing
|
|
20
|
+
const root = zarr.root(store)
|
|
21
|
+
const arr = await zarr.create(root.resolve('/foo'), {
|
|
22
|
+
shape: [100], dtype: '<i4', chunks: [10],
|
|
23
|
+
})
|
|
66
24
|
|
|
67
|
-
|
|
68
|
-
✨ Done in 1.12s.
|
|
25
|
+
const snapshotId = await session.commit('Create foo array')
|
|
69
26
|
```
|
|
70
27
|
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
Ensure you have set your **NPM_TOKEN** in the `GitHub` project setting.
|
|
74
|
-
|
|
75
|
-
In `Settings -> Secrets`, add **NPM_TOKEN** into it.
|
|
76
|
-
|
|
77
|
-
When you want to release the package:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
|
|
28
|
+
## For Development
|
|
81
29
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Notes
|
|
88
|
-
|
|
89
|
-
Build wasm binary for npm
|
|
90
|
-
```
|
|
91
|
-
yarn build --target wasm32-wasip1-threads -o npm/wasm32-wasi
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
Create package dirs
|
|
95
|
-
```
|
|
96
|
-
yarn napi create-npm-dirs
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
publish
|
|
100
|
-
```
|
|
101
|
-
npm publish --access=public
|
|
30
|
+
```bash
|
|
31
|
+
cd icechunk-js
|
|
32
|
+
yarn install
|
|
33
|
+
yarn build
|
|
34
|
+
yarn test
|
|
102
35
|
```
|
|
103
36
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
https://github.com/gyscos/zstd-rs/issues/93#issuecomment-2110684816
|
|
37
|
+
For WASM:
|
|
107
38
|
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
39
|
+
```bash
|
|
40
|
+
# Requires brew install llvm and env vars (see docs/docs/contributing.md)
|
|
41
|
+
yarn build --target wasm32-wasip1-threads
|
|
42
|
+
NAPI_RS_FORCE_WASI=1 yarn test
|
|
112
43
|
```
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,52 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export declare
|
|
3
|
+
export declare class Repository {
|
|
4
|
+
static create(storage: Storage): Promise<Repository>
|
|
5
|
+
static open(storage: Storage): Promise<Repository>
|
|
6
|
+
static openOrCreate(storage: Storage): Promise<Repository>
|
|
7
|
+
static exists(storage: Storage): Promise<boolean>
|
|
8
|
+
readonlySession(options?: ReadonlySessionOptions | undefined | null): Promise<JsSession>
|
|
9
|
+
writableSession(branch: string): Promise<JsSession>
|
|
10
|
+
listBranches(): Promise<Array<string>>
|
|
11
|
+
createBranch(name: string, snapshotId: string): Promise<void>
|
|
12
|
+
listTags(): Promise<Array<string>>
|
|
13
|
+
createTag(name: string, snapshotId: string): Promise<void>
|
|
14
|
+
}
|
|
15
|
+
export type JsRepository = Repository
|
|
16
|
+
|
|
17
|
+
export declare class Session {
|
|
18
|
+
get readOnly(): boolean
|
|
19
|
+
get snapshotId(): string
|
|
20
|
+
get branch(): string | null
|
|
21
|
+
get hasUncommittedChanges(): boolean
|
|
22
|
+
get store(): JsStore
|
|
23
|
+
commit(message: string): Promise<string>
|
|
24
|
+
discardChanges(): Promise<void>
|
|
25
|
+
}
|
|
26
|
+
export type JsSession = Session
|
|
27
|
+
|
|
28
|
+
export declare class Storage {
|
|
29
|
+
static newInMemory(): Promise<Storage>
|
|
30
|
+
}
|
|
31
|
+
export type JsStorage = Storage
|
|
32
|
+
|
|
33
|
+
export declare class Store {
|
|
34
|
+
get(key: string): Promise<Buffer | null>
|
|
35
|
+
getRange(key: string, offset: number, length?: number | undefined | null): Promise<Buffer | null>
|
|
36
|
+
set(key: string, value: Buffer): Promise<void>
|
|
37
|
+
exists(key: string): Promise<boolean>
|
|
38
|
+
delete(key: string): Promise<void>
|
|
39
|
+
list(): Promise<Array<string>>
|
|
40
|
+
listPrefix(prefix: string): Promise<Array<string>>
|
|
41
|
+
listDir(prefix: string): Promise<Array<string>>
|
|
42
|
+
get supportsWrites(): boolean
|
|
43
|
+
get supportsDeletes(): boolean
|
|
44
|
+
get supportsListing(): boolean
|
|
45
|
+
}
|
|
46
|
+
export type JsStore = Store
|
|
47
|
+
|
|
48
|
+
export interface ReadonlySessionOptions {
|
|
49
|
+
branch?: string
|
|
50
|
+
tag?: string
|
|
51
|
+
snapshotId?: string
|
|
52
|
+
}
|
package/index.js
CHANGED
|
@@ -66,30 +66,40 @@ const isMuslFromChildProcess = () => {
|
|
|
66
66
|
function requireNative() {
|
|
67
67
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
68
68
|
try {
|
|
69
|
-
|
|
69
|
+
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
70
70
|
} catch (err) {
|
|
71
71
|
loadErrors.push(err)
|
|
72
72
|
}
|
|
73
73
|
} else if (process.platform === 'android') {
|
|
74
74
|
if (process.arch === 'arm64') {
|
|
75
75
|
try {
|
|
76
|
-
return require('./icechunk
|
|
76
|
+
return require('./icechunk.android-arm64.node')
|
|
77
77
|
} catch (e) {
|
|
78
78
|
loadErrors.push(e)
|
|
79
79
|
}
|
|
80
80
|
try {
|
|
81
|
-
|
|
81
|
+
const binding = require('@earthmover/icechunk-android-arm64')
|
|
82
|
+
const bindingPackageVersion = require('@earthmover/icechunk-android-arm64/package.json').version
|
|
83
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
84
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
85
|
+
}
|
|
86
|
+
return binding
|
|
82
87
|
} catch (e) {
|
|
83
88
|
loadErrors.push(e)
|
|
84
89
|
}
|
|
85
90
|
} else if (process.arch === 'arm') {
|
|
86
91
|
try {
|
|
87
|
-
return require('./icechunk
|
|
92
|
+
return require('./icechunk.android-arm-eabi.node')
|
|
88
93
|
} catch (e) {
|
|
89
94
|
loadErrors.push(e)
|
|
90
95
|
}
|
|
91
96
|
try {
|
|
92
|
-
|
|
97
|
+
const binding = require('@earthmover/icechunk-android-arm-eabi')
|
|
98
|
+
const bindingPackageVersion = require('@earthmover/icechunk-android-arm-eabi/package.json').version
|
|
99
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
100
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
101
|
+
}
|
|
102
|
+
return binding
|
|
93
103
|
} catch (e) {
|
|
94
104
|
loadErrors.push(e)
|
|
95
105
|
}
|
|
@@ -99,34 +109,49 @@ function requireNative() {
|
|
|
99
109
|
} else if (process.platform === 'win32') {
|
|
100
110
|
if (process.arch === 'x64') {
|
|
101
111
|
try {
|
|
102
|
-
return require('./icechunk
|
|
112
|
+
return require('./icechunk.win32-x64-msvc.node')
|
|
103
113
|
} catch (e) {
|
|
104
114
|
loadErrors.push(e)
|
|
105
115
|
}
|
|
106
116
|
try {
|
|
107
|
-
|
|
117
|
+
const binding = require('@earthmover/icechunk-win32-x64-msvc')
|
|
118
|
+
const bindingPackageVersion = require('@earthmover/icechunk-win32-x64-msvc/package.json').version
|
|
119
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
120
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
121
|
+
}
|
|
122
|
+
return binding
|
|
108
123
|
} catch (e) {
|
|
109
124
|
loadErrors.push(e)
|
|
110
125
|
}
|
|
111
126
|
} else if (process.arch === 'ia32') {
|
|
112
127
|
try {
|
|
113
|
-
return require('./icechunk
|
|
128
|
+
return require('./icechunk.win32-ia32-msvc.node')
|
|
114
129
|
} catch (e) {
|
|
115
130
|
loadErrors.push(e)
|
|
116
131
|
}
|
|
117
132
|
try {
|
|
118
|
-
|
|
133
|
+
const binding = require('@earthmover/icechunk-win32-ia32-msvc')
|
|
134
|
+
const bindingPackageVersion = require('@earthmover/icechunk-win32-ia32-msvc/package.json').version
|
|
135
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
136
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
137
|
+
}
|
|
138
|
+
return binding
|
|
119
139
|
} catch (e) {
|
|
120
140
|
loadErrors.push(e)
|
|
121
141
|
}
|
|
122
142
|
} else if (process.arch === 'arm64') {
|
|
123
143
|
try {
|
|
124
|
-
return require('./icechunk
|
|
144
|
+
return require('./icechunk.win32-arm64-msvc.node')
|
|
125
145
|
} catch (e) {
|
|
126
146
|
loadErrors.push(e)
|
|
127
147
|
}
|
|
128
148
|
try {
|
|
129
|
-
|
|
149
|
+
const binding = require('@earthmover/icechunk-win32-arm64-msvc')
|
|
150
|
+
const bindingPackageVersion = require('@earthmover/icechunk-win32-arm64-msvc/package.json').version
|
|
151
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
152
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
153
|
+
}
|
|
154
|
+
return binding
|
|
130
155
|
} catch (e) {
|
|
131
156
|
loadErrors.push(e)
|
|
132
157
|
}
|
|
@@ -135,34 +160,49 @@ function requireNative() {
|
|
|
135
160
|
}
|
|
136
161
|
} else if (process.platform === 'darwin') {
|
|
137
162
|
try {
|
|
138
|
-
return require('./icechunk
|
|
163
|
+
return require('./icechunk.darwin-universal.node')
|
|
139
164
|
} catch (e) {
|
|
140
165
|
loadErrors.push(e)
|
|
141
166
|
}
|
|
142
167
|
try {
|
|
143
|
-
|
|
168
|
+
const binding = require('@earthmover/icechunk-darwin-universal')
|
|
169
|
+
const bindingPackageVersion = require('@earthmover/icechunk-darwin-universal/package.json').version
|
|
170
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
171
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
172
|
+
}
|
|
173
|
+
return binding
|
|
144
174
|
} catch (e) {
|
|
145
175
|
loadErrors.push(e)
|
|
146
176
|
}
|
|
147
177
|
if (process.arch === 'x64') {
|
|
148
178
|
try {
|
|
149
|
-
return require('./icechunk
|
|
179
|
+
return require('./icechunk.darwin-x64.node')
|
|
150
180
|
} catch (e) {
|
|
151
181
|
loadErrors.push(e)
|
|
152
182
|
}
|
|
153
183
|
try {
|
|
154
|
-
|
|
184
|
+
const binding = require('@earthmover/icechunk-darwin-x64')
|
|
185
|
+
const bindingPackageVersion = require('@earthmover/icechunk-darwin-x64/package.json').version
|
|
186
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
187
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
188
|
+
}
|
|
189
|
+
return binding
|
|
155
190
|
} catch (e) {
|
|
156
191
|
loadErrors.push(e)
|
|
157
192
|
}
|
|
158
193
|
} else if (process.arch === 'arm64') {
|
|
159
194
|
try {
|
|
160
|
-
return require('./icechunk
|
|
195
|
+
return require('./icechunk.darwin-arm64.node')
|
|
161
196
|
} catch (e) {
|
|
162
197
|
loadErrors.push(e)
|
|
163
198
|
}
|
|
164
199
|
try {
|
|
165
|
-
|
|
200
|
+
const binding = require('@earthmover/icechunk-darwin-arm64')
|
|
201
|
+
const bindingPackageVersion = require('@earthmover/icechunk-darwin-arm64/package.json').version
|
|
202
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
203
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
204
|
+
}
|
|
205
|
+
return binding
|
|
166
206
|
} catch (e) {
|
|
167
207
|
loadErrors.push(e)
|
|
168
208
|
}
|
|
@@ -172,23 +212,33 @@ function requireNative() {
|
|
|
172
212
|
} else if (process.platform === 'freebsd') {
|
|
173
213
|
if (process.arch === 'x64') {
|
|
174
214
|
try {
|
|
175
|
-
return require('./icechunk
|
|
215
|
+
return require('./icechunk.freebsd-x64.node')
|
|
176
216
|
} catch (e) {
|
|
177
217
|
loadErrors.push(e)
|
|
178
218
|
}
|
|
179
219
|
try {
|
|
180
|
-
|
|
220
|
+
const binding = require('@earthmover/icechunk-freebsd-x64')
|
|
221
|
+
const bindingPackageVersion = require('@earthmover/icechunk-freebsd-x64/package.json').version
|
|
222
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
223
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
224
|
+
}
|
|
225
|
+
return binding
|
|
181
226
|
} catch (e) {
|
|
182
227
|
loadErrors.push(e)
|
|
183
228
|
}
|
|
184
229
|
} else if (process.arch === 'arm64') {
|
|
185
230
|
try {
|
|
186
|
-
return require('./icechunk
|
|
231
|
+
return require('./icechunk.freebsd-arm64.node')
|
|
187
232
|
} catch (e) {
|
|
188
233
|
loadErrors.push(e)
|
|
189
234
|
}
|
|
190
235
|
try {
|
|
191
|
-
|
|
236
|
+
const binding = require('@earthmover/icechunk-freebsd-arm64')
|
|
237
|
+
const bindingPackageVersion = require('@earthmover/icechunk-freebsd-arm64/package.json').version
|
|
238
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
239
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
240
|
+
}
|
|
241
|
+
return binding
|
|
192
242
|
} catch (e) {
|
|
193
243
|
loadErrors.push(e)
|
|
194
244
|
}
|
|
@@ -199,23 +249,33 @@ function requireNative() {
|
|
|
199
249
|
if (process.arch === 'x64') {
|
|
200
250
|
if (isMusl()) {
|
|
201
251
|
try {
|
|
202
|
-
return require('./icechunk
|
|
252
|
+
return require('./icechunk.linux-x64-musl.node')
|
|
203
253
|
} catch (e) {
|
|
204
254
|
loadErrors.push(e)
|
|
205
255
|
}
|
|
206
256
|
try {
|
|
207
|
-
|
|
257
|
+
const binding = require('@earthmover/icechunk-linux-x64-musl')
|
|
258
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-x64-musl/package.json').version
|
|
259
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
260
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
261
|
+
}
|
|
262
|
+
return binding
|
|
208
263
|
} catch (e) {
|
|
209
264
|
loadErrors.push(e)
|
|
210
265
|
}
|
|
211
266
|
} else {
|
|
212
267
|
try {
|
|
213
|
-
return require('./icechunk
|
|
268
|
+
return require('./icechunk.linux-x64-gnu.node')
|
|
214
269
|
} catch (e) {
|
|
215
270
|
loadErrors.push(e)
|
|
216
271
|
}
|
|
217
272
|
try {
|
|
218
|
-
|
|
273
|
+
const binding = require('@earthmover/icechunk-linux-x64-gnu')
|
|
274
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-x64-gnu/package.json').version
|
|
275
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
276
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
277
|
+
}
|
|
278
|
+
return binding
|
|
219
279
|
} catch (e) {
|
|
220
280
|
loadErrors.push(e)
|
|
221
281
|
}
|
|
@@ -223,23 +283,33 @@ function requireNative() {
|
|
|
223
283
|
} else if (process.arch === 'arm64') {
|
|
224
284
|
if (isMusl()) {
|
|
225
285
|
try {
|
|
226
|
-
return require('./icechunk
|
|
286
|
+
return require('./icechunk.linux-arm64-musl.node')
|
|
227
287
|
} catch (e) {
|
|
228
288
|
loadErrors.push(e)
|
|
229
289
|
}
|
|
230
290
|
try {
|
|
231
|
-
|
|
291
|
+
const binding = require('@earthmover/icechunk-linux-arm64-musl')
|
|
292
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-arm64-musl/package.json').version
|
|
293
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
294
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
295
|
+
}
|
|
296
|
+
return binding
|
|
232
297
|
} catch (e) {
|
|
233
298
|
loadErrors.push(e)
|
|
234
299
|
}
|
|
235
300
|
} else {
|
|
236
301
|
try {
|
|
237
|
-
return require('./icechunk
|
|
302
|
+
return require('./icechunk.linux-arm64-gnu.node')
|
|
238
303
|
} catch (e) {
|
|
239
304
|
loadErrors.push(e)
|
|
240
305
|
}
|
|
241
306
|
try {
|
|
242
|
-
|
|
307
|
+
const binding = require('@earthmover/icechunk-linux-arm64-gnu')
|
|
308
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-arm64-gnu/package.json').version
|
|
309
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
310
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
311
|
+
}
|
|
312
|
+
return binding
|
|
243
313
|
} catch (e) {
|
|
244
314
|
loadErrors.push(e)
|
|
245
315
|
}
|
|
@@ -247,23 +317,67 @@ function requireNative() {
|
|
|
247
317
|
} else if (process.arch === 'arm') {
|
|
248
318
|
if (isMusl()) {
|
|
249
319
|
try {
|
|
250
|
-
return require('./icechunk
|
|
320
|
+
return require('./icechunk.linux-arm-musleabihf.node')
|
|
321
|
+
} catch (e) {
|
|
322
|
+
loadErrors.push(e)
|
|
323
|
+
}
|
|
324
|
+
try {
|
|
325
|
+
const binding = require('@earthmover/icechunk-linux-arm-musleabihf')
|
|
326
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-arm-musleabihf/package.json').version
|
|
327
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
328
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
329
|
+
}
|
|
330
|
+
return binding
|
|
331
|
+
} catch (e) {
|
|
332
|
+
loadErrors.push(e)
|
|
333
|
+
}
|
|
334
|
+
} else {
|
|
335
|
+
try {
|
|
336
|
+
return require('./icechunk.linux-arm-gnueabihf.node')
|
|
337
|
+
} catch (e) {
|
|
338
|
+
loadErrors.push(e)
|
|
339
|
+
}
|
|
340
|
+
try {
|
|
341
|
+
const binding = require('@earthmover/icechunk-linux-arm-gnueabihf')
|
|
342
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-arm-gnueabihf/package.json').version
|
|
343
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
344
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
345
|
+
}
|
|
346
|
+
return binding
|
|
347
|
+
} catch (e) {
|
|
348
|
+
loadErrors.push(e)
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
} else if (process.arch === 'loong64') {
|
|
352
|
+
if (isMusl()) {
|
|
353
|
+
try {
|
|
354
|
+
return require('./icechunk.linux-loong64-musl.node')
|
|
251
355
|
} catch (e) {
|
|
252
356
|
loadErrors.push(e)
|
|
253
357
|
}
|
|
254
358
|
try {
|
|
255
|
-
|
|
359
|
+
const binding = require('@earthmover/icechunk-linux-loong64-musl')
|
|
360
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-loong64-musl/package.json').version
|
|
361
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
362
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
363
|
+
}
|
|
364
|
+
return binding
|
|
256
365
|
} catch (e) {
|
|
257
366
|
loadErrors.push(e)
|
|
258
367
|
}
|
|
259
368
|
} else {
|
|
260
369
|
try {
|
|
261
|
-
return require('./icechunk
|
|
370
|
+
return require('./icechunk.linux-loong64-gnu.node')
|
|
262
371
|
} catch (e) {
|
|
263
372
|
loadErrors.push(e)
|
|
264
373
|
}
|
|
265
374
|
try {
|
|
266
|
-
|
|
375
|
+
const binding = require('@earthmover/icechunk-linux-loong64-gnu')
|
|
376
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-loong64-gnu/package.json').version
|
|
377
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
378
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
379
|
+
}
|
|
380
|
+
return binding
|
|
267
381
|
} catch (e) {
|
|
268
382
|
loadErrors.push(e)
|
|
269
383
|
}
|
|
@@ -271,46 +385,66 @@ function requireNative() {
|
|
|
271
385
|
} else if (process.arch === 'riscv64') {
|
|
272
386
|
if (isMusl()) {
|
|
273
387
|
try {
|
|
274
|
-
return require('./icechunk
|
|
388
|
+
return require('./icechunk.linux-riscv64-musl.node')
|
|
275
389
|
} catch (e) {
|
|
276
390
|
loadErrors.push(e)
|
|
277
391
|
}
|
|
278
392
|
try {
|
|
279
|
-
|
|
393
|
+
const binding = require('@earthmover/icechunk-linux-riscv64-musl')
|
|
394
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-riscv64-musl/package.json').version
|
|
395
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
396
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
397
|
+
}
|
|
398
|
+
return binding
|
|
280
399
|
} catch (e) {
|
|
281
400
|
loadErrors.push(e)
|
|
282
401
|
}
|
|
283
402
|
} else {
|
|
284
403
|
try {
|
|
285
|
-
return require('./icechunk
|
|
404
|
+
return require('./icechunk.linux-riscv64-gnu.node')
|
|
286
405
|
} catch (e) {
|
|
287
406
|
loadErrors.push(e)
|
|
288
407
|
}
|
|
289
408
|
try {
|
|
290
|
-
|
|
409
|
+
const binding = require('@earthmover/icechunk-linux-riscv64-gnu')
|
|
410
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-riscv64-gnu/package.json').version
|
|
411
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
412
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
413
|
+
}
|
|
414
|
+
return binding
|
|
291
415
|
} catch (e) {
|
|
292
416
|
loadErrors.push(e)
|
|
293
417
|
}
|
|
294
418
|
}
|
|
295
419
|
} else if (process.arch === 'ppc64') {
|
|
296
420
|
try {
|
|
297
|
-
return require('./icechunk
|
|
421
|
+
return require('./icechunk.linux-ppc64-gnu.node')
|
|
298
422
|
} catch (e) {
|
|
299
423
|
loadErrors.push(e)
|
|
300
424
|
}
|
|
301
425
|
try {
|
|
302
|
-
|
|
426
|
+
const binding = require('@earthmover/icechunk-linux-ppc64-gnu')
|
|
427
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-ppc64-gnu/package.json').version
|
|
428
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
429
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
430
|
+
}
|
|
431
|
+
return binding
|
|
303
432
|
} catch (e) {
|
|
304
433
|
loadErrors.push(e)
|
|
305
434
|
}
|
|
306
435
|
} else if (process.arch === 's390x') {
|
|
307
436
|
try {
|
|
308
|
-
return require('./icechunk
|
|
437
|
+
return require('./icechunk.linux-s390x-gnu.node')
|
|
309
438
|
} catch (e) {
|
|
310
439
|
loadErrors.push(e)
|
|
311
440
|
}
|
|
312
441
|
try {
|
|
313
|
-
|
|
442
|
+
const binding = require('@earthmover/icechunk-linux-s390x-gnu')
|
|
443
|
+
const bindingPackageVersion = require('@earthmover/icechunk-linux-s390x-gnu/package.json').version
|
|
444
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
445
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
446
|
+
}
|
|
447
|
+
return binding
|
|
314
448
|
} catch (e) {
|
|
315
449
|
loadErrors.push(e)
|
|
316
450
|
}
|
|
@@ -320,34 +454,49 @@ function requireNative() {
|
|
|
320
454
|
} else if (process.platform === 'openharmony') {
|
|
321
455
|
if (process.arch === 'arm64') {
|
|
322
456
|
try {
|
|
323
|
-
return require('./icechunk
|
|
457
|
+
return require('./icechunk.openharmony-arm64.node')
|
|
324
458
|
} catch (e) {
|
|
325
459
|
loadErrors.push(e)
|
|
326
460
|
}
|
|
327
461
|
try {
|
|
328
|
-
|
|
462
|
+
const binding = require('@earthmover/icechunk-openharmony-arm64')
|
|
463
|
+
const bindingPackageVersion = require('@earthmover/icechunk-openharmony-arm64/package.json').version
|
|
464
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
465
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
466
|
+
}
|
|
467
|
+
return binding
|
|
329
468
|
} catch (e) {
|
|
330
469
|
loadErrors.push(e)
|
|
331
470
|
}
|
|
332
471
|
} else if (process.arch === 'x64') {
|
|
333
472
|
try {
|
|
334
|
-
return require('./icechunk
|
|
473
|
+
return require('./icechunk.openharmony-x64.node')
|
|
335
474
|
} catch (e) {
|
|
336
475
|
loadErrors.push(e)
|
|
337
476
|
}
|
|
338
477
|
try {
|
|
339
|
-
|
|
478
|
+
const binding = require('@earthmover/icechunk-openharmony-x64')
|
|
479
|
+
const bindingPackageVersion = require('@earthmover/icechunk-openharmony-x64/package.json').version
|
|
480
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
481
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
482
|
+
}
|
|
483
|
+
return binding
|
|
340
484
|
} catch (e) {
|
|
341
485
|
loadErrors.push(e)
|
|
342
486
|
}
|
|
343
487
|
} else if (process.arch === 'arm') {
|
|
344
488
|
try {
|
|
345
|
-
return require('./icechunk
|
|
489
|
+
return require('./icechunk.openharmony-arm.node')
|
|
346
490
|
} catch (e) {
|
|
347
491
|
loadErrors.push(e)
|
|
348
492
|
}
|
|
349
493
|
try {
|
|
350
|
-
|
|
494
|
+
const binding = require('@earthmover/icechunk-openharmony-arm')
|
|
495
|
+
const bindingPackageVersion = require('@earthmover/icechunk-openharmony-arm/package.json').version
|
|
496
|
+
if (bindingPackageVersion !== '1.0.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
497
|
+
throw new Error(`Native binding package version mismatch, expected 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
498
|
+
}
|
|
499
|
+
return binding
|
|
351
500
|
} catch (e) {
|
|
352
501
|
loadErrors.push(e)
|
|
353
502
|
}
|
|
@@ -362,22 +511,32 @@ function requireNative() {
|
|
|
362
511
|
nativeBinding = requireNative()
|
|
363
512
|
|
|
364
513
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
514
|
+
let wasiBinding = null
|
|
515
|
+
let wasiBindingError = null
|
|
365
516
|
try {
|
|
366
|
-
|
|
517
|
+
wasiBinding = require('./icechunk.wasi.cjs')
|
|
518
|
+
nativeBinding = wasiBinding
|
|
367
519
|
} catch (err) {
|
|
368
520
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
369
|
-
|
|
521
|
+
wasiBindingError = err
|
|
370
522
|
}
|
|
371
523
|
}
|
|
372
524
|
if (!nativeBinding) {
|
|
373
525
|
try {
|
|
374
|
-
|
|
526
|
+
wasiBinding = require('@earthmover/icechunk-wasm32-wasi')
|
|
527
|
+
nativeBinding = wasiBinding
|
|
375
528
|
} catch (err) {
|
|
376
529
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
530
|
+
wasiBindingError.cause = err
|
|
377
531
|
loadErrors.push(err)
|
|
378
532
|
}
|
|
379
533
|
}
|
|
380
534
|
}
|
|
535
|
+
if (process.env.NAPI_RS_FORCE_WASI === 'error' && !wasiBinding) {
|
|
536
|
+
const error = new Error('WASI binding not found and NAPI_RS_FORCE_WASI is set to error')
|
|
537
|
+
error.cause = wasiBindingError
|
|
538
|
+
throw error
|
|
539
|
+
}
|
|
381
540
|
}
|
|
382
541
|
|
|
383
542
|
if (!nativeBinding) {
|
|
@@ -386,11 +545,23 @@ if (!nativeBinding) {
|
|
|
386
545
|
`Cannot find native binding. ` +
|
|
387
546
|
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
|
|
388
547
|
'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
|
|
389
|
-
{
|
|
548
|
+
{
|
|
549
|
+
cause: loadErrors.reduce((err, cur) => {
|
|
550
|
+
cur.cause = err
|
|
551
|
+
return cur
|
|
552
|
+
}),
|
|
553
|
+
},
|
|
390
554
|
)
|
|
391
555
|
}
|
|
392
556
|
throw new Error(`Failed to load native binding`)
|
|
393
557
|
}
|
|
394
558
|
|
|
395
559
|
module.exports = nativeBinding
|
|
396
|
-
module.exports.
|
|
560
|
+
module.exports.Repository = nativeBinding.Repository
|
|
561
|
+
module.exports.JsRepository = nativeBinding.JsRepository
|
|
562
|
+
module.exports.Session = nativeBinding.Session
|
|
563
|
+
module.exports.JsSession = nativeBinding.JsSession
|
|
564
|
+
module.exports.Storage = nativeBinding.Storage
|
|
565
|
+
module.exports.JsStorage = nativeBinding.JsStorage
|
|
566
|
+
module.exports.Store = nativeBinding.Store
|
|
567
|
+
module.exports.JsStore = nativeBinding.JsStore
|
package/package.json
CHANGED
|
@@ -1,35 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@earthmover/icechunk",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"browser": "browser.js",
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
|
+
"description": "JavaScript/TypeScript library for Icechunk Zarr Stores",
|
|
6
5
|
"main": "index.js",
|
|
7
|
-
"repository":
|
|
8
|
-
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/earth-mover/icechunk.git",
|
|
9
|
+
"directory": "icechunk-js"
|
|
10
|
+
},
|
|
11
|
+
"license": "Apache 2",
|
|
12
|
+
"browser": "browser.js",
|
|
9
13
|
"keywords": [
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
14
|
+
"icechunk",
|
|
15
|
+
"zarr",
|
|
16
|
+
"zarrita",
|
|
17
|
+
"version-control",
|
|
18
|
+
"data",
|
|
19
|
+
"science",
|
|
20
|
+
"geospatial"
|
|
16
21
|
],
|
|
17
22
|
"files": [
|
|
18
23
|
"index.d.ts",
|
|
19
|
-
"index.js"
|
|
24
|
+
"index.js",
|
|
25
|
+
"browser.js"
|
|
20
26
|
],
|
|
21
27
|
"napi": {
|
|
22
|
-
"binaryName": "icechunk
|
|
28
|
+
"binaryName": "icechunk",
|
|
23
29
|
"targets": [
|
|
24
30
|
"x86_64-pc-windows-msvc",
|
|
25
|
-
"x86_64-apple-darwin",
|
|
26
31
|
"x86_64-unknown-linux-gnu",
|
|
27
32
|
"aarch64-apple-darwin",
|
|
28
33
|
"wasm32-wasip1-threads"
|
|
29
34
|
]
|
|
30
35
|
},
|
|
31
36
|
"engines": {
|
|
32
|
-
"node": ">=
|
|
37
|
+
"node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
|
|
33
38
|
},
|
|
34
39
|
"publishConfig": {
|
|
35
40
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -45,27 +50,29 @@
|
|
|
45
50
|
"format:toml": "taplo format",
|
|
46
51
|
"format:rs": "cargo fmt",
|
|
47
52
|
"lint": "oxlint .",
|
|
48
|
-
"prepublishOnly": "napi prepublish -t npm",
|
|
53
|
+
"prepublishOnly": "napi prepublish -t npm --no-gh-release",
|
|
49
54
|
"test": "ava",
|
|
55
|
+
"preversion": "napi build --platform && git add .",
|
|
50
56
|
"version": "napi version",
|
|
51
57
|
"prepare": "husky"
|
|
52
58
|
},
|
|
53
59
|
"devDependencies": {
|
|
54
|
-
"@emnapi/core": "^1.
|
|
55
|
-
"@emnapi/runtime": "^1.
|
|
56
|
-
"@napi-rs/cli": "^3.0
|
|
57
|
-
"@
|
|
60
|
+
"@emnapi/core": "^1.8.1",
|
|
61
|
+
"@emnapi/runtime": "^1.8.1",
|
|
62
|
+
"@napi-rs/cli": "^3.2.0",
|
|
63
|
+
"@napi-rs/wasm-runtime": "^1.1.1",
|
|
64
|
+
"@oxc-node/core": "^0.0.35",
|
|
58
65
|
"@taplo/cli": "^0.7.0",
|
|
59
|
-
"@tybys/wasm-util": "^0.10.
|
|
66
|
+
"@tybys/wasm-util": "^0.10.1",
|
|
60
67
|
"ava": "^6.4.1",
|
|
61
|
-
"chalk": "^5.
|
|
68
|
+
"chalk": "^5.6.2",
|
|
62
69
|
"husky": "^9.1.7",
|
|
63
|
-
"lint-staged": "^16.1.
|
|
70
|
+
"lint-staged": "^16.1.6",
|
|
64
71
|
"npm-run-all2": "^8.0.4",
|
|
65
|
-
"oxlint": "^1.
|
|
72
|
+
"oxlint": "^1.14.0",
|
|
66
73
|
"prettier": "^3.6.2",
|
|
67
|
-
"tinybench": "^
|
|
68
|
-
"typescript": "^5.
|
|
74
|
+
"tinybench": "^6.0.0",
|
|
75
|
+
"typescript": "^5.9.2"
|
|
69
76
|
},
|
|
70
77
|
"lint-staged": {
|
|
71
78
|
"*.@(js|ts|tsx)": [
|
|
@@ -99,12 +106,11 @@
|
|
|
99
106
|
"singleQuote": true,
|
|
100
107
|
"arrowParens": "always"
|
|
101
108
|
},
|
|
102
|
-
"packageManager": "yarn@4.
|
|
109
|
+
"packageManager": "yarn@4.12.0",
|
|
103
110
|
"optionalDependencies": {
|
|
104
|
-
"@earthmover/icechunk-win32-x64-msvc": "
|
|
105
|
-
"@earthmover/icechunk-
|
|
106
|
-
"@earthmover/icechunk-
|
|
107
|
-
"@earthmover/icechunk-
|
|
108
|
-
"@earthmover/icechunk-wasm32-wasi": "1.0.3"
|
|
111
|
+
"@earthmover/icechunk-win32-x64-msvc": "2.0.0-alpha.2",
|
|
112
|
+
"@earthmover/icechunk-linux-x64-gnu": "2.0.0-alpha.2",
|
|
113
|
+
"@earthmover/icechunk-darwin-arm64": "2.0.0-alpha.2",
|
|
114
|
+
"@earthmover/icechunk-wasm32-wasi": "2.0.0-alpha.2"
|
|
109
115
|
}
|
|
110
116
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 N-API for Rust
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|