@temporalio/core-bridge 1.14.0 → 1.14.1
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/Cargo.lock +21 -4
- package/package.json +8 -7
- package/releases/aarch64-apple-darwin/index.node +0 -0
- package/releases/aarch64-unknown-linux-gnu/index.node +0 -0
- package/releases/x86_64-apple-darwin/index.node +0 -0
- package/releases/x86_64-pc-windows-msvc/index.node +0 -0
- package/releases/x86_64-unknown-linux-gnu/index.node +0 -0
- package/scripts/{build.js → build.ts} +12 -19
- package/scripts/cargo-cp-artifact.d.ts +5 -0
package/Cargo.lock
CHANGED
|
@@ -587,6 +587,12 @@ version = "0.1.5"
|
|
|
587
587
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
588
588
|
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
|
|
589
589
|
|
|
590
|
+
[[package]]
|
|
591
|
+
name = "foldhash"
|
|
592
|
+
version = "0.2.0"
|
|
593
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
594
|
+
checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
|
|
595
|
+
|
|
590
596
|
[[package]]
|
|
591
597
|
name = "form_urlencoded"
|
|
592
598
|
version = "1.2.1"
|
|
@@ -807,7 +813,18 @@ checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
|
|
|
807
813
|
dependencies = [
|
|
808
814
|
"allocator-api2",
|
|
809
815
|
"equivalent",
|
|
810
|
-
"foldhash",
|
|
816
|
+
"foldhash 0.1.5",
|
|
817
|
+
]
|
|
818
|
+
|
|
819
|
+
[[package]]
|
|
820
|
+
name = "hashbrown"
|
|
821
|
+
version = "0.16.1"
|
|
822
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
823
|
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
|
824
|
+
dependencies = [
|
|
825
|
+
"allocator-api2",
|
|
826
|
+
"equivalent",
|
|
827
|
+
"foldhash 0.2.0",
|
|
811
828
|
]
|
|
812
829
|
|
|
813
830
|
[[package]]
|
|
@@ -1240,11 +1257,11 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
|
|
|
1240
1257
|
|
|
1241
1258
|
[[package]]
|
|
1242
1259
|
name = "lru"
|
|
1243
|
-
version = "0.16.
|
|
1260
|
+
version = "0.16.3"
|
|
1244
1261
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1245
|
-
checksum = "
|
|
1262
|
+
checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593"
|
|
1246
1263
|
dependencies = [
|
|
1247
|
-
"hashbrown 0.
|
|
1264
|
+
"hashbrown 0.16.1",
|
|
1248
1265
|
]
|
|
1249
1266
|
|
|
1250
1267
|
[[package]]
|
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temporalio/core-bridge",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"description": "Temporal.io SDK Core<>Node bridge",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build-rust": "
|
|
8
|
+
"build-rust": "tsx ./scripts/build.ts --force",
|
|
9
9
|
"build": "pnpm run build-rust",
|
|
10
10
|
"build-rust-release": "pnpm run build-rust --release",
|
|
11
|
-
"install": "node ./scripts/build.js",
|
|
12
11
|
"format": "cargo fmt",
|
|
13
12
|
"lint": "cargo clippy --fix --allow-staged",
|
|
14
13
|
"lint.check": "cargo clippy"
|
|
@@ -23,10 +22,12 @@
|
|
|
23
22
|
"license": "MIT",
|
|
24
23
|
"dependencies": {
|
|
25
24
|
"@grpc/grpc-js": "^1.12.4",
|
|
26
|
-
"@temporalio/common": "1.14.
|
|
25
|
+
"@temporalio/common": "1.14.1"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
27
28
|
"arg": "^5.0.2",
|
|
28
|
-
"cargo-cp-artifact": "^0.1.
|
|
29
|
-
"
|
|
29
|
+
"cargo-cp-artifact": "^0.1.9",
|
|
30
|
+
"tsx": "^4.20.6"
|
|
30
31
|
},
|
|
31
32
|
"bugs": {
|
|
32
33
|
"url": "https://github.com/temporalio/sdk-typescript/issues"
|
|
@@ -57,5 +58,5 @@
|
|
|
57
58
|
"publishConfig": {
|
|
58
59
|
"access": "public"
|
|
59
60
|
},
|
|
60
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "42bf6087946b7bbda61c7856bc0723c1616f9973"
|
|
61
62
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { targets, getPrebuiltPath, getPrebuiltTargetName, PrebuildError } = require('../common');
|
|
1
|
+
import * as path from 'node:path';
|
|
2
|
+
import * as fs from 'node:fs';
|
|
3
|
+
import arg from 'arg';
|
|
4
|
+
import cargoCpArtifact from 'cargo-cp-artifact';
|
|
5
|
+
import { version } from '../package.json';
|
|
6
|
+
import { targets, getPrebuiltPath, getPrebuiltTargetName, PrebuildError } from '../common';
|
|
8
7
|
|
|
9
8
|
process.chdir(path.resolve(__dirname, '..'));
|
|
10
9
|
|
|
@@ -54,7 +53,7 @@ if (unsupportedTargets.length) {
|
|
|
54
53
|
const forceBuild = args['--force'];
|
|
55
54
|
const buildRelease = args['--release'] || process.env.BUILD_CORE_RELEASE !== undefined;
|
|
56
55
|
|
|
57
|
-
function compile(requestedTarget) {
|
|
56
|
+
function compile(requestedTarget?: string) {
|
|
58
57
|
if (!fs.existsSync('sdk-core/Cargo.toml')) {
|
|
59
58
|
throw new Error('Missing sdk-core/Cargo.toml. Did you forget to run `git submodule update --init --recursive`?');
|
|
60
59
|
}
|
|
@@ -65,8 +64,8 @@ function compile(requestedTarget) {
|
|
|
65
64
|
const out = `releases/${target}/index.node`;
|
|
66
65
|
try {
|
|
67
66
|
fs.unlinkSync(out);
|
|
68
|
-
} catch (err) {
|
|
69
|
-
if (err.code !== 'ENOENT') {
|
|
67
|
+
} catch (err: unknown) {
|
|
68
|
+
if ((err as { code?: string }).code !== 'ENOENT') {
|
|
70
69
|
throw err;
|
|
71
70
|
}
|
|
72
71
|
}
|
|
@@ -83,16 +82,10 @@ function compile(requestedTarget) {
|
|
|
83
82
|
...(buildRelease ? ['--release'] : []),
|
|
84
83
|
...(target ? ['--target', target] : []),
|
|
85
84
|
];
|
|
86
|
-
const cmd = which.sync('cargo-cp-artifact');
|
|
87
85
|
|
|
88
|
-
console.log('Running',
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
shell: process.platform === 'win32',
|
|
92
|
-
});
|
|
93
|
-
if (status !== 0 || error) {
|
|
94
|
-
throw new Error(`Failed to build${target ? ' for ' + target : ''}: status code ${status}`, error);
|
|
95
|
-
}
|
|
86
|
+
console.log('Running cargo-cp-artifact', argv);
|
|
87
|
+
|
|
88
|
+
cargoCpArtifact(argv, process.env);
|
|
96
89
|
}
|
|
97
90
|
|
|
98
91
|
if (requestedTargets.length > 0) {
|