wpd-codec 1.1.3 → 2.1.0

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/dist/read.cjs CHANGED
@@ -149,7 +149,10 @@ function closeCell(state, table, attributes) {
149
149
  blocks,
150
150
  ...attributes.columnSpan > NO_SPAN ? { colSpan: attributes.columnSpan } : {},
151
151
  ...attributes.rowSpan > NO_SPAN ? { rowSpan: attributes.rowSpan } : {},
152
- ...attributes.background === void 0 ? {} : { background: attributes.background }
152
+ ...attributes.background === void 0 ? {} : { background: {
153
+ kind: "solid",
154
+ color: attributes.background
155
+ } }
153
156
  };
154
157
  table.cells.push(cell);
155
158
  }
package/dist/read.js CHANGED
@@ -148,7 +148,10 @@ function closeCell(state, table, attributes) {
148
148
  blocks,
149
149
  ...attributes.columnSpan > NO_SPAN ? { colSpan: attributes.columnSpan } : {},
150
150
  ...attributes.rowSpan > NO_SPAN ? { rowSpan: attributes.rowSpan } : {},
151
- ...attributes.background === void 0 ? {} : { background: attributes.background }
151
+ ...attributes.background === void 0 ? {} : { background: {
152
+ kind: "solid",
153
+ color: attributes.background
154
+ } }
152
155
  };
153
156
  table.cells.push(cell);
154
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wpd-codec",
3
- "version": "1.1.3",
3
+ "version": "2.1.0",
4
4
  "description": "Hand-written read-only WordPerfect 6.x-X6 (.wpd) reader over document-schema.js's ContentDocument",
5
5
  "type": "module",
6
6
  "repository": {
@@ -62,6 +62,8 @@
62
62
  "test:watch": "vitest --project unit",
63
63
  "test:coverage": "turbo run _test:coverage",
64
64
  "_test:coverage": "vitest run --project unit --coverage",
65
+ "test:mutation": "turbo run _test:mutation",
66
+ "_test:mutation": "stryker run stryker.config.mjs",
65
67
  "test:smoke": "turbo run _test:smoke",
66
68
  "_test:smoke": "vitest run --project smoke",
67
69
  "prepare": "husky",
@@ -78,17 +80,21 @@
78
80
  "license": "MIT",
79
81
  "packageManager": "pnpm@11.6.0",
80
82
  "dependencies": {
81
- "archive-codec": "^1.4.2",
82
- "document-schema.js": "^5.6.0",
83
+ "archive-codec": "^1.5.0",
84
+ "document-schema.js": "^6.1.0",
83
85
  "zod": "^4.4.3"
84
86
  },
85
87
  "devDependencies": {
86
88
  "@arethetypeswrong/cli": "^0.18.5",
87
89
  "@cloudflare/vitest-pool-workers": "^0.21.2",
90
+ "@stryker-mutator/core": "^10.0.0",
91
+ "@stryker-mutator/typescript-checker": "^10.0.0",
92
+ "@stryker-mutator/vitest-runner": "^10.0.0",
88
93
  "@types/node": "^26.1.1",
89
94
  "@vitest/coverage-v8": "^4.1.10",
90
95
  "eslint": "^10.8.0",
91
96
  "husky": "^9.1.7",
97
+ "jiti": "2.7.0",
92
98
  "publint": "^0.3.21",
93
99
  "semantic-release": "^25.0.8",
94
100
  "tsdown": "^0.22.13",