@gala-chain/launchpad-sdk 3.12.6 → 3.12.8
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 +35 -0
- package/dist/constants/version.d.ts +5 -1
- package/dist/constants/version.d.ts.map +1 -1
- package/dist/constants/version.generated.d.ts +7 -0
- package/dist/constants/version.generated.d.ts.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.12.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix SDK version detection by using build-time version injection instead of runtime file reading.
|
|
8
|
+
The SDK now generates a version constant during build, ensuring it works in all environments
|
|
9
|
+
(Node.js, browser, bundled). Additionally, added a `/version` slash command to the MCP server for
|
|
10
|
+
easy version checking.
|
|
11
|
+
|
|
12
|
+
### Changes:
|
|
13
|
+
- **SDK**: Implement build-time version injection via `scripts/inject-version.ts`, matching the
|
|
14
|
+
MCP server pattern
|
|
15
|
+
- **SDK**: Update `packages/sdk/package.json` to run `build:version` before compilation
|
|
16
|
+
- **MCP Server**: Add new `utility` prompt category with `/version` command to fetch and display
|
|
17
|
+
SDK/MCP server versions
|
|
18
|
+
|
|
19
|
+
## 3.12.7
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Fix: Include package.json in published npm package for version detection
|
|
24
|
+
|
|
25
|
+
Resolves SDK version showing as "unknown" in runtime environments. The SDK's version loader uses
|
|
26
|
+
`require('../../package.json')` to read the version at module load time, but package.json was not
|
|
27
|
+
included in the published files array, causing the require to fail silently and return "unknown".
|
|
28
|
+
|
|
29
|
+
This is essential for:
|
|
30
|
+
- MCP server version reporting
|
|
31
|
+
- Runtime version detection in applications
|
|
32
|
+
- Dependency analysis tools
|
|
33
|
+
- Following npm packaging best practices
|
|
34
|
+
|
|
35
|
+
Package.json is now included in the published package files list, ensuring the version loader can
|
|
36
|
+
successfully read and expose the SDK version.
|
|
37
|
+
|
|
3
38
|
## 3.12.6
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/constants/version.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/constants/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.generated.d.ts","sourceRoot":"","sources":["../../src/constants/version.generated.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW,WAAW,CAAC"}
|