@thepalaceproject/circulation-admin 1.26.0 → 1.27.0-post.2

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/jest.config.js CHANGED
@@ -6,7 +6,7 @@ module.exports = {
6
6
  "\\.(css|less)$": "<rootDir>/tests/__mocks__/styleMock.js",
7
7
  },
8
8
  preset: "ts-jest",
9
- testEnvironment: "jsdom",
9
+ testEnvironment: "jest-fixed-jsdom",
10
10
  testEnvironmentOptions: {
11
11
  customExportConditions: [""],
12
12
  },
package/jest.polyfills.js CHANGED
@@ -3,15 +3,7 @@
3
3
  const globalThis = window;
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-var-requires
6
- const { ReadableStream, TextDecoder, TextEncoder } = require("node:util");
7
- Object.defineProperties(globalThis, {
8
- ReadableStream: { value: ReadableStream },
9
- TextDecoder: { value: TextDecoder },
10
- TextEncoder: { value: TextEncoder },
11
- });
12
-
13
- // eslint-disable-next-line @typescript-eslint/no-var-requires
14
- const { fetch, Request, Response, Headers } = require("fetch-ponyfill")();
6
+ const { fetch, Headers, Request, Response } = require("fetch-ponyfill")();
15
7
  Object.defineProperties(globalThis, {
16
8
  fetch: { value: fetch, writable: true },
17
9
  Headers: { value: Headers },
package/package.json CHANGED
@@ -9,8 +9,8 @@
9
9
  "author": "The Palace Project",
10
10
  "license": "Apache-2.0",
11
11
  "engines": {
12
- "node": ">=18.0.0",
13
- "npm": ">=8.0.0"
12
+ "node": ">=20.0.0",
13
+ "npm": ">=10.0.0"
14
14
  },
15
15
  "scripts": {
16
16
  "prepublish": "npm run prod",
@@ -76,7 +76,7 @@
76
76
  "@testing-library/user-event": "^14.4.3",
77
77
  "@types/jest": "^29.2.6",
78
78
  "@types/mocha": "^10.0.1",
79
- "@types/node": "^18.11.14",
79
+ "@types/node": "^20.17.19",
80
80
  "@types/numeral": "^2.0.5",
81
81
  "@types/prop-types": "^15.7.3",
82
82
  "@types/react": "^16.14.6",
@@ -108,12 +108,13 @@
108
108
  "husky": "^4.3.0",
109
109
  "jest": "^29.3.1",
110
110
  "jest-environment-jsdom": "^29.3.1",
111
+ "jest-fixed-jsdom": "^0.0.9",
111
112
  "jsdom": "^20.0.3",
112
113
  "json-loader": "^0.5.4",
113
114
  "lint-staged": "^10.4.0",
114
115
  "mini-css-extract-plugin": "1.6.0",
115
116
  "mocha": "^10.2.0",
116
- "msw": "^2.3.0",
117
+ "msw": "^2.7.3",
117
118
  "nightwatch": "^3.2.0",
118
119
  "prettier": "2.1.2",
119
120
  "react-axe": "^3.3.0",
@@ -127,13 +128,13 @@
127
128
  "sinon": "7.5.0",
128
129
  "style-loader": "^0.13.1",
129
130
  "terser-webpack-plugin": "^5.3.6",
130
- "ts-jest": "^29.0.5",
131
- "ts-loader": "^9.4.2",
132
- "ts-node": "^10.9.1",
131
+ "ts-jest": "^29.2.6",
132
+ "ts-loader": "^9.5.2",
133
+ "ts-node": "^10.9.2",
133
134
  "tslint": "^6.1.3",
134
- "tslint-react-a11y": "1.1.0",
135
- "typedoc": "0.23.21",
136
- "typescript": "4.9.4",
135
+ "tslint-react-a11y": "^1.1.0",
136
+ "typedoc": "^0.27.9",
137
+ "typescript": "^5.7.3",
137
138
  "url-loader": "^4.1.1",
138
139
  "webpack": "^5.94.0",
139
140
  "webpack-cli": "^5.0.1",
@@ -150,5 +151,5 @@
150
151
  "*.{js,jsx,ts,tsx,css,md}": "prettier --write",
151
152
  "*.{js,css,md}": "prettier --write"
152
153
  },
153
- "version": "1.26.0"
154
+ "version": "1.27.0-post.2"
154
155
  }
@@ -33,6 +33,5 @@ describe("ProtocolFormField", () => {
33
33
  await user.keyboard(`${testDate}{enter}`);
34
34
 
35
35
  expect(input.value).toBe(testDate);
36
- screen.debug();
37
36
  });
38
37
  });