Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 5d12ef4

Browse files
Prepare 3.0.1 (#186)
- No vulnerabilities reported by `npm audit` in project or demo. - Pretty sure I addressed everything reported by Dependabot. It would be nice if there was a way to validate this before merging? - Other dependencies updated - Fixed: removed `@ts-expect-error` in src/dom/node/Node.ts, as TypeScript now supports different getter/setter types. - Added note about `threads`/`singleThread` config API change for future Vitest updates
1 parent 1fc23df commit 5d12ef4

File tree

6 files changed

+3889
-10779
lines changed

6 files changed

+3889
-10779
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [3.0.1] - 2023-08-18
7+
8+
- Fix import error for enketo-transformer/web (#184)
9+
610
## [3.0.0] - 2023-07-03
711

812
##### Changed

demo/package-lock.json

Lines changed: 986 additions & 9388 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2875 additions & 1374 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enketo-transformer",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "Library that transforms ODK-compliant XForms into a format that Enketo can consume",
55
"license": "Apache-2.0",
66
"type": "module",
@@ -85,52 +85,52 @@
8585
"linkedom": "^0.14.26",
8686
"prettier": "^2.8.8",
8787
"string-direction": "0.1.x",
88-
"undici": "^5.22.1",
88+
"undici": "^5.23.0",
8989
"xpath-to-css": "^1.1.0"
9090
},
9191
"devDependencies": {
9292
"@prettier/plugin-xml": "^2.2.0",
9393
"@types/benchmark": "^2.1.2",
9494
"@types/css.escape": "^1.5.0",
9595
"@types/express": "^4.17.17",
96-
"@types/node": "^18.16.19",
96+
"@types/node": "^18.17.5",
9797
"@types/prettier": "^2.7.3",
98-
"@typescript-eslint/eslint-plugin": "^5.61.0",
99-
"@typescript-eslint/parser": "^5.61.0",
100-
"@vitest/coverage-istanbul": "^0.26.3",
98+
"@typescript-eslint/eslint-plugin": "^5.62.0",
99+
"@typescript-eslint/parser": "^5.62.0",
100+
"@vitest/coverage-istanbul": "^0.28.5",
101101
"benchmark": "^2.1.4",
102102
"chai": "^4.3.7",
103103
"chai-as-promised": "^7.1.1",
104104
"docdash": "^1.2.0",
105105
"eslint": "^7.32.0",
106106
"eslint-config-airbnb": "^19.0.4",
107-
"eslint-config-prettier": "^8.8.0",
107+
"eslint-config-prettier": "^8.10.0",
108108
"eslint-plugin-chai-friendly": "^0.7.2",
109-
"eslint-plugin-import": "^2.27.5",
109+
"eslint-plugin-import": "^2.28.0",
110110
"eslint-plugin-jsdoc": "^36.1.1",
111111
"eslint-plugin-jsx-a11y": "^6.7.1",
112112
"eslint-plugin-prettier": "^4.2.1",
113-
"eslint-plugin-react": "^7.32.2",
113+
"eslint-plugin-react": "^7.33.2",
114114
"eslint-plugin-react-hooks": "^4.6.0",
115-
"eslint-plugin-unicorn": "^36.0.0",
115+
"eslint-plugin-unicorn": "^40.1.0",
116116
"eslint-plugin-vitest": "0.0.21",
117117
"grunt": "^1.6.1",
118118
"http-server": "^13.1.0",
119119
"istanbul-reporter-shield-badge": "^1.2.1",
120-
"libxslt": "0.10.0",
120+
"libxslt": "0.10.2",
121121
"markdown-eslint-parser": "^1.2.1",
122122
"microtime": "^3.1.1",
123123
"playwright": "1.25.0",
124-
"pretty-format": "^29.5.0",
124+
"pretty-format": "^29.6.2",
125125
"rimraf": "^3.0.2",
126-
"typescript": "^5.0.2",
127-
"vite": "^4.3.9",
126+
"typescript": "^5.1.6",
127+
"vite": "^4.4.9",
128128
"vite-node": "^0.28.5",
129129
"vite-plugin-node": "^1.0.0",
130-
"vitest": "^0.26.3"
130+
"vitest": "^0.28.5"
131131
},
132132
"peerDependencies": {
133-
"libxslt": "0.10.0"
133+
"libxslt": "0.10.2"
134134
},
135135
"peerDependenciesMeta": {
136136
"libxslt": {

src/dom/node/Node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export class DOMExtendedNode implements DOM.Node {
5959
).parent() as Element | null;
6060
}
6161

62-
// @ts-expect-error - TypeScript correctly objects to this type, which is also unfortunately accurate!
6362
get textContent(): string | null {
6463
return (this as any as DOMExtendedNode & Node).text();
6564
}

vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ export default defineConfig(async () => {
135135
// functionality which depends on libxmljs/libxslt.
136136
threads: false,
137137

138+
// For future reference: Vitest version 0.29.0+
139+
// would require the `singleThread` setting instead
140+
// of `threads`. We decided not to update past
141+
// 0.28.5 in the 3.0.1 release, as newer releases
142+
// also caused problems with changes to the
143+
// snapshot format.
144+
// singleThread: true,
145+
138146
coverage: {
139147
provider: 'istanbul',
140148
include: ['src/**/*.ts'],

0 commit comments

Comments
 (0)