Skip to content

Commit d0cc3c2

Browse files
committed
chore(sdk/js): bump to 0.5.8-beta.0 for release workflow testing
1 parent 6542bc7 commit d0cc3c2

7 files changed

Lines changed: 27 additions & 7 deletions

File tree

.github/workflows/js-sdk-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
6666
- name: Install dependencies
6767
working-directory: sdk/js
68-
run: npm ci
68+
run: npm install
6969

7070
- name: Build
7171
working-directory: sdk/js

sdk/js/.claude/settings.local.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(npm run clean:*)",
5+
"Bash(npm run build:*)",
6+
"Bash(npm test)",
7+
"Bash(export DSTACK_SIMULATOR_ENDPOINT=/Users/leechael/workshop/phala/dstack/sdk/simulator/dstack.sock)",
8+
"Bash(export TAPPD_SIMULATOR_ENDPOINT=/Users/leechael/workshop/phala/dstack/sdk/simulator/tappd.sock)",
9+
"Bash(node:*)",
10+
"Bash(rm:*)",
11+
"Bash(npm run test:ci:*)",
12+
"Bash(grep:*)",
13+
"Bash(npm test:*)",
14+
"Bash(npm install)",
15+
"Bash(npm run test:*)",
16+
"Bash(npx tsc:*)"
17+
],
18+
"deny": []
19+
}
20+
}

sdk/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phala/dstack-sdk",
3-
"version": "0.5.7",
3+
"version": "0.5.8-beta.0",
44
"description": "dstack SDK",
55
"main": "dist/node/index.js",
66
"types": "dist/node/index.d.ts",
@@ -104,7 +104,7 @@
104104
},
105105
"devDependencies": {
106106
"@types/node": "latest",
107-
"typescript": "latest",
107+
"typescript": "^5.7.0",
108108
"vitest": "^3.2.4"
109109
},
110110
"optionalDependencies": {

sdk/js/src/encrypt-env-vars.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function encryptEnvVars(envs: EnvVar[], publicKeyHex: string) {
4040
// Import shared key for AES-GCM
4141
const importedShared = await crypto.subtle.importKey(
4242
"raw",
43-
shared,
43+
new Uint8Array(shared),
4444
{ name: "AES-GCM", length: 256 },
4545
true,
4646
["encrypt"],

sdk/js/tsconfig.browser.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2018",
4+
"target": "es2020",
55
"module": "es2015",
66
"lib": ["es2018", "dom"],
77
"outDir": "./dist/browser",

sdk/js/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2018",
3+
"target": "es2020",
44
"module": "commonjs",
55
"lib": ["es2018"],
66
"declaration": true,

sdk/js/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4-
"target": "es2018",
4+
"target": "es2020",
55
"module": "commonjs",
66
"lib": ["es2018"],
77
"outDir": "./dist/node",

0 commit comments

Comments
 (0)