Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
96 lines (96 loc) · 3.47 KB
/
Copy pathpackage.json
File metadata and controls
96 lines (96 loc) · 3.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"name": "fast-gql-cache-rs",
"version": "0.1.0",
"description": "Rust-WASM InMemoryCache implementation for Apollo Client",
"license": "MIT OR Apache-2.0",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"files": [
"dist",
"pkg/fast_gql_cache_rs.js",
"pkg/fast_gql_cache_rs.d.ts",
"pkg/fast_gql_cache_rs_bg.wasm",
"pkg/fast_gql_cache_rs_bg.wasm.d.ts",
"LICENSE-MIT",
"LICENSE-APACHE",
"THIRD_PARTY_NOTICES.md"
],
"engines": {
"node": ">=22.21.0 <23 || >=24.7.0"
},
"scripts": {
"clean": "rimraf dist coverage",
"wasm:dev": "bash scripts/wasm-pack.sh --dev",
"wasm:build": "bash scripts/wasm-pack.sh --release",
"build:ts": "tsc -p tsconfig.build.json",
"build": "npm run wasm:build && npm run build:ts",
"dev": "npm run wasm:dev && npm run build:ts -- --watch",
"typecheck": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.tests.json",
"lint": "eslint --max-warnings 0 .",
"lint:rust": "cargo clippy --manifest-path wasm/Cargo.toml --target wasm32-unknown-unknown -- -D warnings",
"format": "prettier --config apollo-client-sm/.prettierrc --write \"src/**/*.ts\" \"config/**/*.ts\" \"*.json\" && cargo fmt --manifest-path wasm/Cargo.toml",
"check:format": "prettier --config apollo-client-sm/.prettierrc --check \"src/**/*.ts\" \"config/**/*.ts\" \"*.json\" && cargo fmt --manifest-path wasm/Cargo.toml --check",
"postinstall": "patch-package",
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config ./jest.config.mjs",
"test:watch": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config ./jest.config.mjs --watch",
"test:ci": "npm run wasm:build && node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config ./jest.config.mjs --ci",
"probe:parity": "npm run build:ts && node docs/probes/parity.mjs",
"probe:compare": "npm run build:ts && node docs/probes/compare-caches.mjs",
"probe:memory": "node --expose-gc docs/probes/cache-memory-probe.mjs",
"test:tooling": "npm run build:ts && node --test docs/probes/probes.test.mjs docs/probes/memory-harness.test.mjs scripts/bench/*.test.mjs",
"bench:pr": "node scripts/bench/pr.mjs",
"check:pack": "node scripts/check-pack.mjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/convict-git/fast-gql-cache-rs.git"
},
"keywords": [
"apollo",
"graphql",
"cache",
"wasm",
"rust"
],
"dependencies": {
"@wry/equality": "^0.5.6",
"optimism": "^0.18.0"
},
"peerDependencies": {
"@apollo/client": "4.2.11",
"graphql": "^16.0.0 || ^17.0.0"
},
"devDependencies": {
"@apollo/client": "4.2.11",
"@eslint/js": "^9.21.0",
"@jest/expect-utils": "^29.7.0",
"@testing-library/jest-dom": "^7.0.1",
"@types/jest": "^29.5.14",
"@types/lodash": "4.17.24",
"@types/node": "^22.10.7",
"eslint": "^9.21.0",
"expect-type": "^1.4.0",
"graphql-tag": "^2.12.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-util": "^29.7.0",
"lodash": "4.17.23",
"patch-package": "^8.0.1",
"prettier": "^3.5.3",
"rimraf": "^6.0.1",
"ts-jest": "^29.2.6",
"typescript": "^5.7.3",
"typescript-eslint": "^8.21.0",
"wasm-pack": "^0.13.1"
}
}