@query-graph/core 1.0.0-next.1
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/LICENSE +21 -0
- package/README.md +620 -0
- package/definition.d.ts +87 -0
- package/definition.js +112 -0
- package/dsl.d.ts +687 -0
- package/dsl.js +742 -0
- package/index.d.ts +60 -0
- package/index.js +562 -0
- package/package.json +143 -0
package/package.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@query-graph/core",
|
|
3
|
+
"version": "1.0.0-next.1",
|
|
4
|
+
"description": "Native query graph planner and SQL compiler for Node.js",
|
|
5
|
+
"workspaces": [
|
|
6
|
+
"packages/*"
|
|
7
|
+
],
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"require": "./index.js",
|
|
13
|
+
"default": "./index.js"
|
|
14
|
+
},
|
|
15
|
+
"./definition": {
|
|
16
|
+
"types": "./definition.d.ts",
|
|
17
|
+
"require": "./definition.js",
|
|
18
|
+
"default": "./definition.js"
|
|
19
|
+
},
|
|
20
|
+
"./dsl": {
|
|
21
|
+
"types": "./dsl.d.ts",
|
|
22
|
+
"require": "./dsl.js",
|
|
23
|
+
"default": "./dsl.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/ViktorMarichev/query-graph.git"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/ViktorMarichev/query-graph#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/ViktorMarichev/query-graph/issues"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"query-graph",
|
|
37
|
+
"sql",
|
|
38
|
+
"napi-rs",
|
|
39
|
+
"Rust",
|
|
40
|
+
"N-API",
|
|
41
|
+
"node-addon"
|
|
42
|
+
],
|
|
43
|
+
"files": [
|
|
44
|
+
"definition.d.ts",
|
|
45
|
+
"definition.js",
|
|
46
|
+
"dsl.d.ts",
|
|
47
|
+
"dsl.js",
|
|
48
|
+
"index.d.ts",
|
|
49
|
+
"index.js"
|
|
50
|
+
],
|
|
51
|
+
"napi": {
|
|
52
|
+
"binaryName": "query-graph",
|
|
53
|
+
"targets": [
|
|
54
|
+
"x86_64-pc-windows-msvc",
|
|
55
|
+
"x86_64-apple-darwin",
|
|
56
|
+
"x86_64-unknown-linux-gnu",
|
|
57
|
+
"aarch64-apple-darwin"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">= 20"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"registry": "https://registry.npmjs.org/",
|
|
65
|
+
"access": "public"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"artifacts": "napi artifacts",
|
|
69
|
+
"bench": "node --import @oxc-node/core/register benchmark/bench.ts",
|
|
70
|
+
"build": "node scripts/build-napi.mjs --release",
|
|
71
|
+
"build:debug": "node scripts/build-napi.mjs",
|
|
72
|
+
"check:versions": "node scripts/sync-version.mjs --check",
|
|
73
|
+
"format": "run-p format:prettier format:rs format:toml",
|
|
74
|
+
"format:generated": "prettier index.js index.d.ts --write",
|
|
75
|
+
"format:prettier": "prettier . -w",
|
|
76
|
+
"format:toml": "taplo format",
|
|
77
|
+
"format:rs": "cargo fmt",
|
|
78
|
+
"lint": "oxlint .",
|
|
79
|
+
"prepublishOnly": "npm run check:versions && napi prepublish -t npm",
|
|
80
|
+
"preversion": "npm run release:check",
|
|
81
|
+
"release:check": "npm run build && npm run format:generated && npm run lint && npm run typecheck && npm test && prettier . --check && cargo fmt --all -- --check && cargo test --workspace --all-targets && cargo clippy --workspace --all-targets --all-features -- -D warnings && npm run check:versions",
|
|
82
|
+
"typecheck": "tsc -p __test__/tsconfig.json --noEmit",
|
|
83
|
+
"test": "ava",
|
|
84
|
+
"version": "node scripts/sync-version.mjs && npm run build && npm run format:generated && node scripts/sync-version.mjs --check && git add package.json packages/dsl-object/package.json yarn.lock Cargo.toml crates/query-graph-core/Cargo.toml Cargo.lock index.js index.d.ts",
|
|
85
|
+
"prepare": "husky"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@emnapi/core": "^1.5.0",
|
|
89
|
+
"@emnapi/runtime": "^1.5.0",
|
|
90
|
+
"@napi-rs/cli": "^3.2.0",
|
|
91
|
+
"@oxc-node/core": "^0.1.0",
|
|
92
|
+
"@taplo/cli": "^0.7.0",
|
|
93
|
+
"@tybys/wasm-util": "^0.10.0",
|
|
94
|
+
"ava": "^7.0.0",
|
|
95
|
+
"chalk": "^5.6.2",
|
|
96
|
+
"husky": "^9.1.7",
|
|
97
|
+
"lint-staged": "^16.1.6",
|
|
98
|
+
"npm-run-all2": "^8.0.4",
|
|
99
|
+
"oxlint": "^1.14.0",
|
|
100
|
+
"prettier": "^3.6.2",
|
|
101
|
+
"tinybench": "^6.0.0",
|
|
102
|
+
"typescript": "^6.0.0"
|
|
103
|
+
},
|
|
104
|
+
"lint-staged": {
|
|
105
|
+
"*.@(js|ts|tsx)": [
|
|
106
|
+
"oxlint --fix"
|
|
107
|
+
],
|
|
108
|
+
"*.@(js|ts|tsx|yml|yaml|md|json)": [
|
|
109
|
+
"prettier --write"
|
|
110
|
+
],
|
|
111
|
+
"*.toml": [
|
|
112
|
+
"taplo format"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"ava": {
|
|
116
|
+
"extensions": {
|
|
117
|
+
"ts": "module"
|
|
118
|
+
},
|
|
119
|
+
"timeout": "2m",
|
|
120
|
+
"workerThreads": false,
|
|
121
|
+
"environmentVariables": {
|
|
122
|
+
"OXC_TSCONFIG_PATH": "./__test__/tsconfig.json"
|
|
123
|
+
},
|
|
124
|
+
"nodeArguments": [
|
|
125
|
+
"--import",
|
|
126
|
+
"@oxc-node/core/register"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"prettier": {
|
|
130
|
+
"printWidth": 120,
|
|
131
|
+
"semi": false,
|
|
132
|
+
"trailingComma": "all",
|
|
133
|
+
"singleQuote": true,
|
|
134
|
+
"arrowParens": "always"
|
|
135
|
+
},
|
|
136
|
+
"packageManager": "yarn@4.13.0",
|
|
137
|
+
"optionalDependencies": {
|
|
138
|
+
"@query-graph/core-win32-x64-msvc": "1.0.0-next.1",
|
|
139
|
+
"@query-graph/core-darwin-x64": "1.0.0-next.1",
|
|
140
|
+
"@query-graph/core-linux-x64-gnu": "1.0.0-next.1",
|
|
141
|
+
"@query-graph/core-darwin-arm64": "1.0.0-next.1"
|
|
142
|
+
}
|
|
143
|
+
}
|