@celerity-sdk/runtime 0.2.0 → 0.2.2

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/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules
package/CHANGELOG.md DELETED
@@ -1,15 +0,0 @@
1
- # Changelog
2
-
3
- ## [0.2.0](https://github.com/newstack-cloud/celerity/compare/runtime-sdk-node/v0.1.0...runtime-sdk-node/v0.2.0) (2026-02-08)
4
-
5
-
6
- ### Features
7
-
8
- * **lib-rt-sdk-node:** add full support for http features ([6536d24](https://github.com/newstack-cloud/celerity/commit/6536d2495ba614178b661578a9f1f0fd15e899e2))
9
-
10
- ## 1.0.0 (2026-02-08)
11
-
12
-
13
- ### Features
14
-
15
- * **lib-rt-sdk-node:** add full support for http features ([6536d24](https://github.com/newstack-cloud/celerity/commit/6536d2495ba614178b661578a9f1f0fd15e899e2))
package/CONTRIBUTING.md DELETED
@@ -1,121 +0,0 @@
1
- # Contributing to Celerity Runtime SDK for Node.js
2
-
3
- ## Prerequisites
4
-
5
- - [Node.js](https://nodejs.org/) >=22.0.0
6
- - [Rust](https://www.rust-lang.org/tools/install) >=1.76.0
7
- - [Yarn](https://yarnpkg.com/) (will be installed via corepack)
8
- - [Git](https://git-scm.com/)
9
-
10
- ## Installation
11
-
12
- 1. **Enable corepack (if not already enabled):**
13
- ```bash
14
- corepack enable
15
- ```
16
-
17
- 2. **Install dependencies:**
18
- ```bash
19
- yarn install
20
- ```
21
-
22
- ## Development
23
-
24
- ### Building
25
-
26
- Build the native module for all platforms:
27
-
28
- ```bash
29
- yarn build
30
- ```
31
-
32
- Build for a specific target:
33
-
34
- ```bash
35
- yarn build --target x86_64-apple-darwin
36
- yarn build --target aarch64-unknown-linux-gnu
37
- yarn build --target x86_64-pc-windows-msvc
38
- ```
39
-
40
- ### Running Tests
41
-
42
- ```bash
43
- yarn test
44
- ```
45
-
46
- ### Development Build
47
-
48
- For faster iteration during development:
49
-
50
- ```bash
51
- yarn build:debug
52
- ```
53
-
54
- ## Releasing
55
-
56
- To release a new version of the Node.js Runtime SDK, follow these steps:
57
-
58
- ### Pre-Release Checklist:
59
-
60
- 1. **Update Version in package.json**
61
- ```bash
62
- # Edit libs/runtime/sdk/node/package.json
63
- # Change the version field to match your release
64
- "version": "1.2.3"
65
- ```
66
-
67
- 2. **Update Version in Cargo.toml**
68
- ```bash
69
- # Edit libs/runtime/sdk/node/Cargo.toml
70
- # Change the version field to match your release
71
- version = "1.2.3"
72
- ```
73
-
74
- 3. **Commit the Version Changes**
75
- ```bash
76
- git add libs/runtime/sdk/node/package.json libs/runtime/sdk/node/Cargo.toml
77
- git commit -m "chore(lib-rt-sdk-node): bump version to 1.2.3"
78
- git push origin main
79
- ```
80
-
81
- 4. **Create and Push Release Tag**
82
- ```bash
83
- # Note: Use 'v' prefix in the tag name
84
- git tag -a libs/runtime/sdk/node-v1.2.3 -m "Release Celerity Runtime SDK for Node.js v1.2.3"
85
- git push origin libs/runtime/sdk/node-v1.2.3
86
- ```
87
-
88
- ### Version Format Guidelines:
89
-
90
- - **package.json**: Use `"1.2.3"` (no 'v' prefix)
91
- - **Cargo.toml**: Use `1.2.3` (no 'v' prefix)
92
- - **Git Tags**: Use `libs/runtime/sdk/node-v1.2.3` (with 'v' prefix)
93
- - **NPM Package**: Will be published as `@celerity-sdk/runtime 1.2.3`
94
-
95
- ### What Happens After Tagging:
96
-
97
- 1. **CI/CD Pipeline**: The GitHub Actions workflow will automatically:
98
- - Build native modules for all supported platforms
99
- - Run tests across multiple Node.js versions and platforms
100
- - Extract version from tag (e.g., `v1.2.3` from `libs/runtime/sdk/node-v1.2.3`)
101
- - Publish to NPM as `@celerity-sdk/runtime 1.2.3`
102
-
103
- 2. **Verification**: Check that the package is available on NPM:
104
- ```bash
105
- npm install @celerity-sdk/runtime@1.2.3
106
- ```
107
-
108
- ### Supported Platforms:
109
-
110
- The SDK is built and tested for the following platforms:
111
-
112
- - **macOS**: x86_64, aarch64 (Apple Silicon)
113
- - **Linux**: x86_64 (GNU), x86_64 (musl), aarch64 (GNU), aarch64 (musl)
114
- - **Windows**: x86_64, aarch64
115
- - **FreeBSD**: x86_64
116
-
117
- ### Important Notes:
118
-
119
- - All tests must pass before the package is published
120
- - Cross-platform compatibility is verified automatically
121
- - The published package version will be clean (no monorepo prefixes)
package/Cargo.toml DELETED
@@ -1,38 +0,0 @@
1
- [package]
2
- edition = "2021"
3
- name = "celerityjs-runtime-sdk"
4
- version = "0.0.0"
5
- license.workspace = true
6
-
7
- [lib]
8
- crate-type = ["cdylib"]
9
-
10
- [dependencies]
11
- # Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
12
- napi = { version = "3.8", default-features = false, features = [
13
- "napi4",
14
- "async",
15
- "serde-json",
16
- ] }
17
- napi-derive = "3"
18
- tokio = "1.39.2"
19
- axum = "0.8.4"
20
- serde = "1.0.204"
21
- serde_json = "1.0.122"
22
- chrono = "0.4"
23
- tracing = "0.1.40"
24
- tracing-core = "0.1.32"
25
- tracing-subscriber = { version = "0.3.20", features = ["chrono", "json"] }
26
-
27
- [dependencies.celerity_runtime_core]
28
- path = "../../core"
29
-
30
- [dependencies.celerity_helpers]
31
- path = "../../helpers"
32
-
33
- [build-dependencies]
34
- napi-build = "2"
35
-
36
- [profile.release]
37
- lto = true
38
- strip = "symbols"
package/build.rs DELETED
@@ -1,3 +0,0 @@
1
- fn main() {
2
- napi_build::setup();
3
- }