@afterpack/integration-utils 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  The full changelog, including cloud and dashboard changes, is at https://www.afterpack.dev/changelog.
4
4
 
5
+ ## 1.0.3 - 2026-11-13
6
+
7
+ A smaller WebAssembly engine and a `super` fix
8
+
9
+ ### Changed
10
+
11
+ - **Engine:** `@afterpack/wasm` is smaller: 1.23 MiB gzipped, down from 1.29 MiB.
12
+
13
+ ### Fixed
14
+
15
+ - **Engine:** An object literal getter or setter that uses `super`, such as `get x() { return super.x }`, is now protected. Before, the file failed the build.
16
+
17
+ ## 1.0.2 - 2026-10-27
18
+
19
+ Classic-script scoping and direct `eval` fixes
20
+
21
+ ### Fixed
22
+
23
+ - **Engine:** A function declared inside a block at the top of a classic script, such as `{ function g() {} }` or a labelled one, is a global again after protection, so other scripts on the page can call it.
24
+ - **Engine:** Code that calls `eval` directly keeps seeing the page's globals: a name AfterPack adds can no longer stand in for a global the evaluated code reads or writes, and a variable the evaluated code declares stays in its function's scope. Files that build their `eval` code at runtime, or use `with`, come out larger, because AfterPack gives its own names a form no page global can share.
25
+ - **Engine:** `if (x) function f() {}` in a script that is not a module is accepted, as browsers accept it. Declarations browsers reject there, such as `if (x) async function f() {}`, now fail the build with a parse error instead of passing through.
26
+ - **Engine:** A parenthesized string statement such as `('use strict');` no longer makes its function strict.
27
+ - **Engine:** A `var` inside a class `static {}` block stays local to that block.
28
+
5
29
  ## 1.0.1 - 2026-10-24
6
30
 
7
31
  One receipt for several builds, and release notes in every package
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/integration-utils",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Internal shared code for the AfterPack CLI and framework plugins",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,7 +28,7 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@jridgewell/sourcemap-codec": "^1.5.5",
31
- "@afterpack/protection-map": "1.0.1"
31
+ "@afterpack/protection-map": "1.0.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@biomejs/biome": "2.4.4",