@gala-chain/launchpad-sdk 3.12.5 → 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 +21 -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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
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
|
+
|
|
3
24
|
## 3.12.5
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|