Skip to content

Commit 311b39b

Browse files
New XPath support (#137)
* Preparing project to work with `xpath` submodule. * XPathSelector class. * Fixing a condition at `xsltApplyTemplates` that would process nodes out of the document order. * Expanding expressions in Match Resolver. * Implementing template priority, according to XSLT 3.0 spec. * Coming back to not use `transformedChildNodes`, or `outputNodeList`. * Not utilizing transformed nodes and attributes anymore. * Solving #126. * Improving `generate-id` function related unit tests. * Deprecating Roolup in favor of TSUP. * Improving interactive tests. * Preparations to remove legacy. * Deprecating legacy XPath implementation. * Updating XPath submodule. * Unskipping `xsl:import` tests. * Unskipping tests for `xsl:include`. * Adding a simpler unit test to address issue reported at #107. * Updating submodule reference. * Updating unit tests. * Unskipping unit tests. * Update XPath submodule. * Fixing #110. * Fixing issue reported at #116. * Adjusting node-matching patterns with `@`, to fix unit tests with LMHT. * Fixing remaining unit tests.
1 parent fd2814a commit 311b39b

65 files changed

Lines changed: 4625 additions & 5738 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
coverage/
55
demo/
66
dist/
7+
interactive-tests/js/
78
node_modules/
89

910
package-lock.json
1011
.history/
1112

1213
# Strange bug with debugging a unit test causes a stop in `async_hooks`.
13-
test-without-jest.*
14+
test-without-jest.*
15+
16+
# Claude
17+
CLAUDE.md
18+
.claude/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/xpath/lib"]
2+
path = src/xpath/lib
3+
url = https://github.com/DesignLiquido/xpath

.vscode/launch.json

Lines changed: 74 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,89 @@
66
"configurations": [
77
{
88
"name": "Unit tests",
9-
"type": "node",
9+
"type": "pwa-node",
1010
"request": "launch",
11-
"runtimeArgs": [
12-
"--inspect-brk",
13-
"${workspaceRoot}/node_modules/jest/bin/jest.js",
14-
// "include.test",
11+
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
12+
"args": [
1513
"--runInBand",
14+
"--no-cache",
1615
"--testTimeout=100000000"
1716
],
18-
"smartStep": true,
17+
"runtimeArgs": [
18+
"--inspect-brk"
19+
],
20+
"smartStep": false,
1921
"skipFiles": [
2022
"<node_internals>/**",
23+
"<node_internals>/internal/async_hooks.js",
24+
"<node_internals>/internal/inspector_async_hook.js",
25+
"<node_internals>/internal/async_hooks/**",
26+
"**/async_hooks.js",
27+
"**/inspector_async_hook.js",
28+
"**/internal/async_hooks/**",
2129
"node_modules/**"
2230
],
31+
"sourceMaps": true,
32+
"autoAttachChildProcesses": false,
33+
"disableOptimisticBPs": true,
34+
"justMyCode": false,
2335
"console": "integratedTerminal",
24-
"internalConsoleOptions": "neverOpen"
36+
"internalConsoleOptions": "neverOpen",
37+
"resolveSourceMapLocations": [
38+
"${workspaceFolder}/**",
39+
"!**/node_modules/**"
40+
],
41+
"outFiles": [
42+
"${workspaceFolder}/**/*.js",
43+
"!**/node_modules/**"
44+
],
45+
"env": {
46+
"NODE_OPTIONS": ""
47+
}
48+
},
49+
{
50+
"name": "Debug Jest Tests",
51+
"type": "pwa-node",
52+
"request": "launch",
53+
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
54+
"args": [
55+
"--runInBand",
56+
"--no-cache",
57+
"--testTimeout=100000000",
58+
"${fileBasename}"
59+
],
60+
"runtimeArgs": [
61+
"--inspect-brk"
62+
],
63+
"cwd": "${workspaceFolder}",
64+
"console": "integratedTerminal",
65+
"internalConsoleOptions": "neverOpen",
66+
"skipFiles": [
67+
"<node_internals>/**",
68+
"<node_internals>/internal/async_hooks.js",
69+
"<node_internals>/internal/inspector_async_hook.js",
70+
"<node_internals>/internal/async_hooks/**",
71+
"**/async_hooks.js",
72+
"**/inspector_async_hook.js",
73+
"**/internal/async_hooks/**",
74+
"node_modules/**"
75+
],
76+
"smartStep": false,
77+
"sourceMaps": true,
78+
"autoAttachChildProcesses": false,
79+
"disableOptimisticBPs": true,
80+
"justMyCode": false,
81+
"resolveSourceMapLocations": [
82+
"${workspaceFolder}/**",
83+
"!**/node_modules/**"
84+
],
85+
"outFiles": [
86+
"${workspaceFolder}/**/*.js",
87+
"!**/node_modules/**"
88+
],
89+
"env": {
90+
"NODE_OPTIONS": ""
91+
}
2592
},
2693
{
2794
"name": "Launch TS file",

.vscode/settings.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"debug.javascript.autoAttachFilter": "onlyWithFlag",
3+
"debug.javascript.suggestPrettyPrinting": false,
4+
"debug.javascript.usePreview": true,
5+
"debug.javascript.skipFiles": [
6+
"<node_internals>/**",
7+
"<node_internals>/internal/async_hooks.js",
8+
"<node_internals>/internal/inspector_async_hook.js",
9+
"<node_internals>/internal/async_hooks/**",
10+
"**/async_hooks.js",
11+
"**/inspector_async_hook.js",
12+
"**/internal/async_hooks/**"
13+
],
14+
"jest.jestCommandLine": "npx jest",
15+
"jest.autoRun": "off",
16+
"jest.debugConfiguration": "Debug Jest Tests",
17+
"jest.nodeEnv": {
18+
"NODE_OPTIONS": ""
19+
},
20+
"debug.javascript.terminalOptions": {
21+
"skipFiles": [
22+
"<node_internals>/**",
23+
"**/async_hooks.js",
24+
"**/inspector_async_hook.js",
25+
"**/internal/async_hooks/**"
26+
],
27+
"smartStep": false
28+
}
29+
}

0 commit comments

Comments
 (0)