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

Commit

Permalink
Prepare 3.0.1
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
eyelidlessness committed Aug 18, 2023
1 parent 1fc23df commit 8f2f80b
Show file tree
Hide file tree
Showing 6 changed files with 3,889 additions and 10,779 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [3.0.1] - 2023-08-18

- Fix import error for enketo-transformer/web (#184)

## [3.0.0] - 2023-07-03

##### Changed
Expand Down
10,374 changes: 986 additions & 9,388 deletions demo/package-lock.json

Large diffs are not rendered by default.

4,249 changes: 2,875 additions & 1,374 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enketo-transformer",
"version": "3.0.0",
"version": "3.0.1",
"description": "Library that transforms ODK-compliant XForms into a format that Enketo can consume",
"license": "Apache-2.0",
"type": "module",
Expand Down Expand Up @@ -85,52 +85,52 @@
"linkedom": "^0.14.26",
"prettier": "^2.8.8",
"string-direction": "0.1.x",
"undici": "^5.22.1",
"undici": "^5.23.0",
"xpath-to-css": "^1.1.0"
},
"devDependencies": {
"@prettier/plugin-xml": "^2.2.0",
"@types/benchmark": "^2.1.2",
"@types/css.escape": "^1.5.0",
"@types/express": "^4.17.17",
"@types/node": "^18.16.19",
"@types/node": "^18.17.5",
"@types/prettier": "^2.7.3",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@vitest/coverage-istanbul": "^0.26.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitest/coverage-istanbul": "^0.28.5",
"benchmark": "^2.1.4",
"chai": "^4.3.7",
"chai-as-promised": "^7.1.1",
"docdash": "^1.2.0",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.8.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^36.1.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unicorn": "^36.0.0",
"eslint-plugin-unicorn": "^40.1.0",
"eslint-plugin-vitest": "0.0.21",
"grunt": "^1.6.1",
"http-server": "^13.1.0",
"istanbul-reporter-shield-badge": "^1.2.1",
"libxslt": "0.10.0",
"libxslt": "0.10.2",
"markdown-eslint-parser": "^1.2.1",
"microtime": "^3.1.1",
"playwright": "1.25.0",
"pretty-format": "^29.5.0",
"pretty-format": "^29.6.2",
"rimraf": "^3.0.2",
"typescript": "^5.0.2",
"vite": "^4.3.9",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vite-node": "^0.28.5",
"vite-plugin-node": "^1.0.0",
"vitest": "^0.26.3"
"vitest": "^0.28.5"
},
"peerDependencies": {
"libxslt": "0.10.0"
"libxslt": "0.10.2"
},
"peerDependenciesMeta": {
"libxslt": {
Expand Down
1 change: 0 additions & 1 deletion src/dom/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class DOMExtendedNode implements DOM.Node {
).parent() as Element | null;
}

// @ts-expect-error - TypeScript correctly objects to this type, which is also unfortunately accurate!
get textContent(): string | null {
return (this as any as DOMExtendedNode & Node).text();
}
Expand Down
8 changes: 8 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ export default defineConfig(async () => {
// functionality which depends on libxmljs/libxslt.
threads: false,

// For future reference: Vitest version 0.29.0+
// would require the `singleThread` setting instead
// of `threads`. We decided not to update past
// 0.28.5 in the 3.0.1 release, as newer releases
// also caused problems with changes to the
// snapshot format.
// singleThread: true,

coverage: {
provider: 'istanbul',
include: ['src/**/*.ts'],
Expand Down

0 comments on commit 8f2f80b

Please sign in to comment.