@getodk/xpath 0.8.1 → 0.9.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/README.md +0 -6
- package/dist/adapter/defaults.d.ts +3 -6
- package/dist/adapter/interface/XPathNodeKindAdapter.d.ts +1 -1
- package/dist/evaluator/NamespaceResolver.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/static/grammar/type-names.d.ts +1 -4
- package/package.json +15 -13
|
@@ -17,8 +17,6 @@ export type XPathType = `${SyntaxType.Xpath}`;
|
|
|
17
17
|
* as arguments to a {@link FunctionCallType}
|
|
18
18
|
*/
|
|
19
19
|
export type ExprType = `${SyntaxType.Expr}`;
|
|
20
|
-
type NonOperationExprType = FilterExprType | FilterPathExprType;
|
|
21
|
-
type OperationExprType = Exclude<Extract<SyntaxType, `${string}_expr`>, NonOperationExprType>;
|
|
22
20
|
export type UnaryExprType = `${SyntaxType.UnaryExpr}`;
|
|
23
21
|
export type AdditionExprType = `${SyntaxType.AdditionExpr}`;
|
|
24
22
|
export type AndExprType = `${SyntaxType.AndExpr}`;
|
|
@@ -77,7 +75,6 @@ export type StringLiteralType = LiteralType;
|
|
|
77
75
|
export type ErrorType = `${SyntaxType.ERROR}`;
|
|
78
76
|
type AnyApparentExprType = AdditionExprType | AndExprType | DivisionExprType | EqExprType | FilterPathExprType | FunctionCallType | GteExprType | GtExprType | LiteralType | LteExprType | LtExprType | ModuloExprType | MultiplicationExprType | NeExprType | NumberType | OrExprType | SubtractionExprType | UnaryExprType | UnionExprType;
|
|
79
77
|
export type AnyExprType = AnyApparentExprType;
|
|
80
|
-
export type AnyOperationExprType = OperationExprType;
|
|
81
78
|
export type AnyBinaryExprType = BinaryExprType;
|
|
82
79
|
export type AnyUnaryExprType = UnaryExprType;
|
|
83
80
|
export type AnyLocationPathType = AbbreviatedAbsoluteLocationPathType | AbbreviatedAxisTestType | AbbreviatedStepType | AbsoluteLocationPathType | AbsoluteRootLocationPathType | AxisNameType | AxisTestType | FilterExprType | FilterPathExprType | NodeTestType | NodeTypeTestType | ParentType | PredicateType | ProcessingInstructionNameTestType | RelativeLocationPathType | RelativeStepSyntaxLiteral | SelfType | StepType;
|
|
@@ -85,5 +82,5 @@ export type AnyFunctionType = ArgumentType | FunctionCallType | FunctionNameType
|
|
|
85
82
|
export type AnyNameType = LocalPartType | PrefixedNameType | PrefixedWildcardNameTestType | PrefixType | UnprefixedNameType | UnprefixedWildcardNameTestType;
|
|
86
83
|
export type AnyLiteralType = LiteralType | NumberType;
|
|
87
84
|
export type AnyContextuallyScopedType = VariableReferenceType;
|
|
88
|
-
export type AnySyntaxType = AnyBinaryExprType | AnyContextuallyScopedType |
|
|
85
|
+
export type AnySyntaxType = AnyBinaryExprType | AnyContextuallyScopedType | AnyFunctionType | AnyLiteralType | AnyLocationPathType | AnyNameType | AnyUnaryExprType | ExprType | XPathType;
|
|
89
86
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getodk/xpath",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "XPath implementation for ODK Web Forms",
|
|
6
6
|
"type": "module",
|
|
@@ -31,16 +31,15 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": "^20.19.3 || ^22.12.0 || ^24.
|
|
35
|
-
"yarn": "
|
|
34
|
+
"node": "^20.19.3 || ^22.12.0 || ^24.11.0",
|
|
35
|
+
"yarn": "4.11.0"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "npm-run-all -nl build:*",
|
|
38
|
+
"build": "npm-run-all -nl 'build:*'",
|
|
39
39
|
"build:clean": "rimraf dist/",
|
|
40
40
|
"build:js": "vite build",
|
|
41
41
|
"dev": "vite",
|
|
42
|
-
"
|
|
43
|
-
"test": "npm-run-all --continue-on-error --print-name --print-label test-node:* test-browser:*",
|
|
42
|
+
"test": "npm-run-all -nl 'test-node:*' 'test-browser:*'",
|
|
44
43
|
"test-node:jsdom": "vitest run",
|
|
45
44
|
"test-browser:chromium": "BROWSER_NAME=chromium vitest run",
|
|
46
45
|
"test-browser:firefox": "BROWSER_NAME=firefox vitest run",
|
|
@@ -49,24 +48,27 @@
|
|
|
49
48
|
"test-watch:chromium": "BROWSER_NAME=chromium vitest",
|
|
50
49
|
"test-watch:firefox": "BROWSER_NAME=firefox vitest",
|
|
51
50
|
"test-watch:webkit": "BROWSER_NAME=webkit vitest",
|
|
52
|
-
"test:types": "npm-run-all -nl test:types:*",
|
|
51
|
+
"test:types": "npm-run-all -nl 'test:types:*'",
|
|
53
52
|
"test:types:main": "tsc --project ./tsconfig.json --emitDeclarationOnly false --noEmit",
|
|
54
53
|
"test:types:test": "tsc --project ./test/tsconfig.json --emitDeclarationOnly false --noEmit"
|
|
55
54
|
},
|
|
56
55
|
"dependencies": {
|
|
57
|
-
"@getodk/common": "0.
|
|
56
|
+
"@getodk/common": "0.11.0",
|
|
58
57
|
"crypto-js": "^4.2.0",
|
|
59
58
|
"temporal-polyfill": "^0.3.0"
|
|
60
59
|
},
|
|
61
60
|
"devDependencies": {
|
|
62
|
-
"@babel/core": "^7.28.
|
|
63
|
-
"@getodk/tree-sitter-xpath": "0.2.
|
|
64
|
-
"@playwright/test": "^1.
|
|
61
|
+
"@babel/core": "^7.28.5",
|
|
62
|
+
"@getodk/tree-sitter-xpath": "0.2.2",
|
|
63
|
+
"@playwright/test": "^1.57.0",
|
|
65
64
|
"@types/crypto-js": "^4.2.2",
|
|
66
65
|
"@vitest/browser": "^3.2.4",
|
|
67
66
|
"babel-plugin-transform-jsbi-to-bigint": "^1.4.2",
|
|
68
|
-
"jsdom": "^
|
|
69
|
-
"
|
|
67
|
+
"jsdom": "^27.2.0",
|
|
68
|
+
"npm-run-all2": "^8.0.4",
|
|
69
|
+
"rimraf": "^6.0.1",
|
|
70
|
+
"typescript": "~5.9.3",
|
|
71
|
+
"vite": "^7.2.4",
|
|
70
72
|
"vite-plugin-babel": "^1.3.2",
|
|
71
73
|
"vite-plugin-dts": "^4.5.4",
|
|
72
74
|
"vite-plugin-no-bundle": "^4.0.0",
|