@gala-chain/launchpad-sdk 3.12.4 → 3.12.6
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 +33 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/polyfills/file-global.d.ts +12 -0
- package/dist/polyfills/file-global.d.ts.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.12.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix: Properly define global File polyfill for Node.js environments
|
|
8
|
+
|
|
9
|
+
Resolves "ReferenceError: File is not defined" error in CommonJS bundles by implementing a proper
|
|
10
|
+
global File polyfill. The previous attempt to use web-file-polyfill as a side-effect import was
|
|
11
|
+
ineffective because:
|
|
12
|
+
1. web-file-polyfill does NOT define a global File object - it only exports File as a named export
|
|
13
|
+
2. Zod schemas using z.instanceof(File) evaluate at module load time, before any conditional
|
|
14
|
+
checks
|
|
15
|
+
3. The CommonJS bundle immediately referenced the undefined File global during schema
|
|
16
|
+
initialization
|
|
17
|
+
|
|
18
|
+
The fix creates a dedicated polyfill module that:
|
|
19
|
+
- Imports File from web-file-polyfill
|
|
20
|
+
- Defines it as a global in Node.js environments (where File is undefined)
|
|
21
|
+
- Executes before all Zod schemas are evaluated
|
|
22
|
+
- Maintains browser compatibility (native File API is already available)
|
|
23
|
+
|
|
24
|
+
## 3.12.5
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- f92c0f6: Fix CommonJS bundle compatibility by downgrading uuid from ^13.0.0 to ^9.0.1
|
|
29
|
+
|
|
30
|
+
The CommonJS bundle (dist/index.cjs.js) was unable to load uuid@13.0.0 because that version is
|
|
31
|
+
ESM-only. UUID v9.0.1 is the last version with dual ESM/CommonJS support, allowing the CommonJS
|
|
32
|
+
bundle to properly require() the uuid package without ERR_REQUIRE_ESM errors. This fix enables
|
|
33
|
+
full compatibility across all three bundle formats (UMD, ESM, CJS) for Node.js CommonJS
|
|
34
|
+
environments and legacy bundlers.
|
|
35
|
+
|
|
3
36
|
## 3.12.4
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|