@gala-chain/launchpad-sdk 3.12.5 → 3.12.7

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,45 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.12.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix: Include package.json in published npm package for version detection
8
+
9
+ Resolves SDK version showing as "unknown" in runtime environments. The SDK's version loader uses
10
+ `require('../../package.json')` to read the version at module load time, but package.json was not
11
+ included in the published files array, causing the require to fail silently and return "unknown".
12
+
13
+ This is essential for:
14
+ - MCP server version reporting
15
+ - Runtime version detection in applications
16
+ - Dependency analysis tools
17
+ - Following npm packaging best practices
18
+
19
+ Package.json is now included in the published package files list, ensuring the version loader can
20
+ successfully read and expose the SDK version.
21
+
22
+ ## 3.12.6
23
+
24
+ ### Patch Changes
25
+
26
+ - Fix: Properly define global File polyfill for Node.js environments
27
+
28
+ Resolves "ReferenceError: File is not defined" error in CommonJS bundles by implementing a proper
29
+ global File polyfill. The previous attempt to use web-file-polyfill as a side-effect import was
30
+ ineffective because:
31
+ 1. web-file-polyfill does NOT define a global File object - it only exports File as a named export
32
+ 2. Zod schemas using z.instanceof(File) evaluate at module load time, before any conditional
33
+ checks
34
+ 3. The CommonJS bundle immediately referenced the undefined File global during schema
35
+ initialization
36
+
37
+ The fix creates a dedicated polyfill module that:
38
+ - Imports File from web-file-polyfill
39
+ - Defines it as a global in Node.js environments (where File is undefined)
40
+ - Executes before all Zod schemas are evaluated
41
+ - Maintains browser compatibility (native File API is already available)
42
+
3
43
  ## 3.12.5
4
44
 
5
45
  ### Patch Changes