@khanacademy/wonder-blocks-testing 17.1.1 → 17.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @khanacademy/wonder-blocks-testing
2
2
 
3
+ ## 17.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d003cbe: Remove the `node-fetch` peer dependency. The mock response machinery now uses the built-in Fetch API `Response` (available in Node 18+ and in test environments that provide a Fetch polyfill). `RespondWith.text` no longer includes a body when the mocked status code forbids one (204, 205, 304), matching the Fetch spec.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [d003cbe]
12
+ - @khanacademy/wonder-blocks-testing-core@5.2.0
13
+ - @khanacademy/wonder-blocks-core@12.4.4
14
+ - @khanacademy/wonder-blocks-data@15.0.3
15
+
16
+ ## 17.1.2
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [0d4e856]
21
+ - @khanacademy/wonder-blocks-data@15.0.3
22
+
3
23
  ## 17.1.1
4
24
 
5
25
  ### Patch Changes
@@ -11,11 +11,11 @@ export declare const DefaultAdapters: {
11
11
  readonly boundary: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<(error: Error | null | undefined, errorInfo: {
12
12
  componentStack: string;
13
13
  }) => React.ReactNode>;
14
- readonly css: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<string | string[] | import("aphrodite").CSSProperties | {
14
+ readonly css: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<string | string[] | {
15
15
  classes: Array<string>;
16
16
  style: import("aphrodite").CSSProperties;
17
- }>;
18
- readonly data: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<((requestId: string) => Promise<import("@khanacademy/wonder-blocks-data").ValidCacheData> | null | undefined) | ((requestId: string) => Promise<import("@khanacademy/wonder-blocks-data").ValidCacheData> | null | undefined)[]>;
17
+ } | import("aphrodite").CSSProperties>;
18
+ readonly data: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<((requestId: string) => Promise<import("@khanacademy/wonder-blocks-data").ValidCacheData> | null | undefined)[] | ((requestId: string) => Promise<import("@khanacademy/wonder-blocks-data").ValidCacheData> | null | undefined)>;
19
19
  readonly portal: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<string>;
20
20
  readonly router: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<import("@khanacademy/wonder-blocks-testing-core").RouterAdapterConfig>;
21
21
  readonly renderState: import("@khanacademy/wonder-blocks-testing-core").TestHarnessAdapter<true>;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "17.1.1",
6
+ "version": "17.2.0",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -21,13 +21,12 @@
21
21
  "types": "dist/index.d.ts",
22
22
  "dependencies": {
23
23
  "@khanacademy/wonder-blocks-core": "12.4.4",
24
- "@khanacademy/wonder-blocks-data": "15.0.2",
25
- "@khanacademy/wonder-blocks-testing-core": "5.1.1"
24
+ "@khanacademy/wonder-blocks-testing-core": "5.2.0",
25
+ "@khanacademy/wonder-blocks-data": "15.0.3"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@khanacademy/wonder-stuff-core": "^3.0.0",
29
29
  "aphrodite": "^1.2.5",
30
- "node-fetch": "^2.6.7",
31
30
  "react": "18.2.0",
32
31
  "react-dom": "18.2.0",
33
32
  "react-router-dom": "5.3.4",