@typeberry/convert 0.6.2-9d23bc2 → 0.7.0-366a4ad

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/README.md CHANGED
@@ -68,8 +68,9 @@ $ npm start -- fuzz-target
68
68
  Build and run typeberry using Docker:
69
69
 
70
70
  ```bash
71
- # Build the Docker image
72
- $ docker build -t typeberry .
71
+ # Build the Docker image (stamp the commit hash into the version so the image
72
+ # is not mistaken for a clean release; omit the build-arg to build a release).
73
+ $ docker build --build-arg VERSION_SHA=$(git rev-parse --short HEAD) -t typeberry .
73
74
 
74
75
  # Run with default settings
75
76
  $ docker run typeberry
@@ -84,7 +85,9 @@ $ docker run -e JAM_LOG=trace GP_VERSION=0.7.2 typeberry
84
85
  $ docker run -v $(pwd)/database:/app/database typeberry
85
86
  ```
86
87
 
87
- The Docker container uses a minimal Alpine Linux image and forwards all arguments to `npm start`.
88
+ This is a two-stage build on `node:25-bookworm-slim`: the first stage compiles the
89
+ project into a single bundle (one per worker thread) and the final image runs that
90
+ bundle directly via the `index.js` entrypoint, forwarding all arguments to it.
88
91
 
89
92
  ### Running the JSON RPC
90
93
 
package/index.js CHANGED
@@ -4626,7 +4626,7 @@ function seeThrough(v) {
4626
4626
  }
4627
4627
 
4628
4628
  ;// CONCATENATED MODULE: ./packages/core/utils/package.json
4629
- const package_namespaceObject = {"rE":"0.6.2"};
4629
+ const package_namespaceObject = /*#__PURE__*/JSON.parse('{"rE":"0.7.0-366a4ad"}');
4630
4630
  ;// CONCATENATED MODULE: ./packages/core/utils/result.ts
4631
4631
 
4632
4632
  /**
@@ -11581,7 +11581,10 @@ class Version extends WithDebug {
11581
11581
  static tryFromString(str) {
11582
11582
  const parse = (v) => tryAsU8(Number(v));
11583
11583
  try {
11584
- const [major, minor, patch] = str.trim().split(".").map(parse);
11584
+ // strip any semver pre-release / build metadata (e.g. "-15ccd70", "+build.42")
11585
+ // so that only `major.minor.patch` is parsed.
11586
+ const core = str.trim().split(/[-+]/)[0];
11587
+ const [major, minor, patch] = core.split(".").map(parse);
11585
11588
  return Version.create({
11586
11589
  major,
11587
11590
  minor,