onnxruntime-node 1.23.2 → 1.24.0-dev.20251104-75d35474d5
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/__commit.txt +1 -0
- package/bin/napi-v6/darwin/arm64/{libonnxruntime.1.23.2.dylib → libonnxruntime.1.24.0.dylib} +0 -0
- package/bin/napi-v6/darwin/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v6/linux/arm64/libonnxruntime.so.1 +0 -0
- package/bin/napi-v6/linux/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v6/linux/x64/libonnxruntime.so.1 +0 -0
- package/bin/napi-v6/linux/x64/onnxruntime_binding.node +0 -0
- package/bin/napi-v6/win32/arm64/DirectML.dll +0 -0
- package/bin/napi-v6/win32/arm64/dxcompiler.dll +0 -0
- package/bin/napi-v6/win32/arm64/dxil.dll +0 -0
- package/bin/napi-v6/win32/arm64/onnxruntime.dll +0 -0
- package/bin/napi-v6/win32/arm64/onnxruntime_binding.node +0 -0
- package/bin/napi-v6/win32/x64/DirectML.dll +0 -0
- package/bin/napi-v6/win32/x64/dxcompiler.dll +0 -0
- package/bin/napi-v6/win32/x64/dxil.dll +0 -0
- package/bin/napi-v6/win32/x64/onnxruntime.dll +0 -0
- package/bin/napi-v6/win32/x64/onnxruntime_binding.node +0 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/lib/version.ts +1 -1
- package/package.json +2 -2
- package/script/build.js +92 -69
- package/script/install-metadata-versions.js +6 -1
- package/script/prepack.js +49 -32
- package/bin/napi-v6/darwin/x64/libonnxruntime.1.23.2.dylib +0 -0
- package/bin/napi-v6/darwin/x64/onnxruntime_binding.node +0 -0
package/__commit.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
75d35474d57ae8f0288ecb44f82ac16054ecc120
|
package/bin/napi-v6/darwin/arm64/{libonnxruntime.1.23.2.dylib → libonnxruntime.1.24.0.dylib}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.24.0-dev.20251104-75d35474d5";
|
package/dist/version.js
CHANGED
|
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.version = void 0;
|
|
6
6
|
// This file is generated by /js/scripts/update-version.ts
|
|
7
7
|
// Do not modify file content manually.
|
|
8
|
-
exports.version = '1.
|
|
8
|
+
exports.version = '1.24.0-dev.20251104-75d35474d5';
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAElC,0DAA0D;AAC1D,uCAAuC;AAE1B,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../lib/version.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAElC,0DAA0D;AAC1D,uCAAuC;AAE1B,QAAA,OAAO,GAAG,gCAAgC,CAAC"}
|
package/lib/version.ts
CHANGED
package/package.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
6
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.24.0-dev.20251104-75d35474d5",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"adm-zip": "^0.5.16",
|
|
17
17
|
"global-agent": "^3.0.0",
|
|
18
|
-
"onnxruntime-common": "1.
|
|
18
|
+
"onnxruntime-common": "1.24.0-dev.20251104-75d35474d5"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postinstall": "node ./script/install",
|
package/script/build.js
CHANGED
|
@@ -1,49 +1,68 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
|
-
var __createBinding =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
4
|
+
var __createBinding =
|
|
5
|
+
(this && this.__createBinding) ||
|
|
6
|
+
(Object.create
|
|
7
|
+
? function (o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return m[k];
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}
|
|
20
|
+
: function (o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
});
|
|
24
|
+
var __setModuleDefault =
|
|
25
|
+
(this && this.__setModuleDefault) ||
|
|
26
|
+
(Object.create
|
|
27
|
+
? function (o, v) {
|
|
28
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
29
|
+
}
|
|
30
|
+
: function (o, v) {
|
|
31
|
+
o['default'] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar =
|
|
34
|
+
(this && this.__importStar) ||
|
|
35
|
+
function (mod) {
|
|
21
36
|
if (mod && mod.__esModule) return mod;
|
|
22
37
|
var result = {};
|
|
23
|
-
if (mod != null)
|
|
38
|
+
if (mod != null)
|
|
39
|
+
for (var k in mod)
|
|
40
|
+
if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
41
|
__setModuleDefault(result, mod);
|
|
25
42
|
return result;
|
|
26
|
-
};
|
|
27
|
-
var __importDefault =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
43
|
+
};
|
|
44
|
+
var __importDefault =
|
|
45
|
+
(this && this.__importDefault) ||
|
|
46
|
+
function (mod) {
|
|
47
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
48
|
+
};
|
|
49
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
const child_process_1 = require('child_process');
|
|
51
|
+
const fs = __importStar(require('fs-extra'));
|
|
52
|
+
const minimist_1 = __importDefault(require('minimist'));
|
|
53
|
+
const os = __importStar(require('os'));
|
|
54
|
+
const path = __importStar(require('path'));
|
|
36
55
|
// command line flags
|
|
37
56
|
const buildArgs = (0, minimist_1.default)(process.argv.slice(2));
|
|
38
57
|
// --config=Debug|Release|RelWithDebInfo
|
|
39
58
|
const CONFIG = buildArgs.config || (os.platform() === 'win32' ? 'RelWithDebInfo' : 'Release');
|
|
40
59
|
if (CONFIG !== 'Debug' && CONFIG !== 'Release' && CONFIG !== 'RelWithDebInfo') {
|
|
41
|
-
|
|
60
|
+
throw new Error(`unrecognized config: ${CONFIG}`);
|
|
42
61
|
}
|
|
43
62
|
// --arch=x64|ia32|arm64|arm
|
|
44
63
|
const ARCH = buildArgs.arch || os.arch();
|
|
45
64
|
if (ARCH !== 'x64' && ARCH !== 'ia32' && ARCH !== 'arm64' && ARCH !== 'arm') {
|
|
46
|
-
|
|
65
|
+
throw new Error(`unrecognized architecture: ${ARCH}`);
|
|
47
66
|
}
|
|
48
67
|
// --onnxruntime-build-dir=
|
|
49
68
|
const ONNXRUNTIME_BUILD_DIR = buildArgs['onnxruntime-build-dir'];
|
|
@@ -71,78 +90,82 @@ const BIN_FOLDER = path.join(ROOT_FOLDER, 'bin');
|
|
|
71
90
|
const BUILD_FOLDER = path.join(ROOT_FOLDER, 'build');
|
|
72
91
|
// if rebuild, clean up the dist folders
|
|
73
92
|
if (REBUILD) {
|
|
74
|
-
|
|
75
|
-
|
|
93
|
+
fs.removeSync(BIN_FOLDER);
|
|
94
|
+
fs.removeSync(BUILD_FOLDER);
|
|
76
95
|
}
|
|
77
96
|
const args = [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
97
|
+
'cmake-js',
|
|
98
|
+
REBUILD ? 'reconfigure' : 'configure',
|
|
99
|
+
`--arch=${ARCH}`,
|
|
100
|
+
'--CDnapi_build_version=6',
|
|
101
|
+
`--CDCMAKE_BUILD_TYPE=${CONFIG}`,
|
|
83
102
|
];
|
|
84
103
|
if (ONNXRUNTIME_BUILD_DIR && typeof ONNXRUNTIME_BUILD_DIR === 'string') {
|
|
85
|
-
|
|
104
|
+
args.push(`--CDONNXRUNTIME_BUILD_DIR=${ONNXRUNTIME_BUILD_DIR}`);
|
|
86
105
|
}
|
|
87
106
|
if (ONNXRUNTIME_GENERATOR && typeof ONNXRUNTIME_GENERATOR === 'string') {
|
|
88
|
-
|
|
107
|
+
args.push(`--CDONNXRUNTIME_GENERATOR=${ONNXRUNTIME_GENERATOR}`);
|
|
89
108
|
}
|
|
90
109
|
if (USE_DML) {
|
|
91
|
-
|
|
110
|
+
args.push('--CDUSE_DML=ON');
|
|
92
111
|
}
|
|
93
112
|
if (USE_WEBGPU) {
|
|
94
|
-
|
|
113
|
+
args.push('--CDUSE_WEBGPU=ON');
|
|
95
114
|
}
|
|
96
115
|
if (USE_CUDA) {
|
|
97
|
-
|
|
116
|
+
args.push('--CDUSE_CUDA=ON');
|
|
98
117
|
}
|
|
99
118
|
if (USE_TENSORRT) {
|
|
100
|
-
|
|
119
|
+
args.push('--CDUSE_TENSORRT=ON');
|
|
101
120
|
}
|
|
102
121
|
if (USE_COREML) {
|
|
103
|
-
|
|
122
|
+
args.push('--CDUSE_COREML=ON');
|
|
104
123
|
}
|
|
105
124
|
if (USE_QNN) {
|
|
106
|
-
|
|
125
|
+
args.push('--CDUSE_QNN=ON');
|
|
107
126
|
}
|
|
108
127
|
if (DLL_DEPS) {
|
|
109
|
-
|
|
128
|
+
args.push(`--CDORT_NODEJS_DLL_DEPS=${DLL_DEPS}`);
|
|
110
129
|
}
|
|
111
130
|
// set CMAKE_OSX_ARCHITECTURES for macOS build
|
|
112
131
|
if (os.platform() === 'darwin') {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
throw new Error(`architecture not supported for macOS build: ${ARCH}`);
|
|
121
|
-
}
|
|
132
|
+
if (ARCH === 'x64') {
|
|
133
|
+
args.push('--CDCMAKE_OSX_ARCHITECTURES=x86_64');
|
|
134
|
+
} else if (ARCH === 'arm64') {
|
|
135
|
+
args.push('--CDCMAKE_OSX_ARCHITECTURES=arm64');
|
|
136
|
+
} else {
|
|
137
|
+
throw new Error(`architecture not supported for macOS build: ${ARCH}`);
|
|
138
|
+
}
|
|
122
139
|
}
|
|
123
140
|
// In Windows, "npx cmake-js configure" uses a powershell script to detect the Visual Studio installation.
|
|
124
141
|
// The script uses the environment variable LIB. If an invalid path is specified in LIB, the script will fail.
|
|
125
142
|
// So we override the LIB environment variable to remove invalid paths.
|
|
126
|
-
const envOverride =
|
|
143
|
+
const envOverride =
|
|
144
|
+
os.platform() === 'win32' && process.env.LIB
|
|
127
145
|
? { ...process.env, LIB: process.env.LIB.split(';').filter(fs.existsSync).join(';') }
|
|
128
146
|
: process.env;
|
|
129
147
|
// launch cmake-js configure
|
|
130
|
-
const procCmakejs = (0, child_process_1.spawnSync)('npx', args, {
|
|
148
|
+
const procCmakejs = (0, child_process_1.spawnSync)('npx', args, {
|
|
149
|
+
shell: true,
|
|
150
|
+
stdio: 'inherit',
|
|
151
|
+
cwd: ROOT_FOLDER,
|
|
152
|
+
env: envOverride,
|
|
153
|
+
});
|
|
131
154
|
if (procCmakejs.status !== 0) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
155
|
+
if (procCmakejs.error) {
|
|
156
|
+
console.error(procCmakejs.error);
|
|
157
|
+
}
|
|
158
|
+
process.exit(procCmakejs.status === null ? undefined : procCmakejs.status);
|
|
136
159
|
}
|
|
137
160
|
// launch cmake to build
|
|
138
161
|
const procCmake = (0, child_process_1.spawnSync)('cmake', ['--build', '.', '--config', CONFIG], {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
162
|
+
shell: true,
|
|
163
|
+
stdio: 'inherit',
|
|
164
|
+
cwd: BUILD_FOLDER,
|
|
142
165
|
});
|
|
143
166
|
if (procCmake.status !== 0) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
167
|
+
if (procCmake.error) {
|
|
168
|
+
console.error(procCmake.error);
|
|
169
|
+
}
|
|
170
|
+
process.exit(procCmake.status === null ? undefined : procCmake.status);
|
|
148
171
|
}
|
|
@@ -4,4 +4,9 @@
|
|
|
4
4
|
// This file is generated by /js/scripts/update-version.ts
|
|
5
5
|
// Do not modify file content manually.
|
|
6
6
|
|
|
7
|
-
module.exports = {
|
|
7
|
+
module.exports = {
|
|
8
|
+
nuget: [
|
|
9
|
+
{ feed: 'nuget_nightly', version: '1.24.0-dev-20251104-1853-75d35474d5' },
|
|
10
|
+
{ feed: 'nuget_nightly', version: '1.23.0-dev-20250429-1449-a9a3ad2e0c' },
|
|
11
|
+
],
|
|
12
|
+
};
|
package/script/prepack.js
CHANGED
|
@@ -1,42 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
// Licensed under the MIT License.
|
|
4
|
-
var __createBinding =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
4
|
+
var __createBinding =
|
|
5
|
+
(this && this.__createBinding) ||
|
|
6
|
+
(Object.create
|
|
7
|
+
? function (o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return m[k];
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}
|
|
20
|
+
: function (o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
});
|
|
24
|
+
var __setModuleDefault =
|
|
25
|
+
(this && this.__setModuleDefault) ||
|
|
26
|
+
(Object.create
|
|
27
|
+
? function (o, v) {
|
|
28
|
+
Object.defineProperty(o, 'default', { enumerable: true, value: v });
|
|
29
|
+
}
|
|
30
|
+
: function (o, v) {
|
|
31
|
+
o['default'] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar =
|
|
34
|
+
(this && this.__importStar) ||
|
|
35
|
+
function (mod) {
|
|
21
36
|
if (mod && mod.__esModule) return mod;
|
|
22
37
|
var result = {};
|
|
23
|
-
if (mod != null)
|
|
38
|
+
if (mod != null)
|
|
39
|
+
for (var k in mod)
|
|
40
|
+
if (k !== 'default' && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
41
|
__setModuleDefault(result, mod);
|
|
25
42
|
return result;
|
|
26
|
-
};
|
|
27
|
-
Object.defineProperty(exports,
|
|
28
|
-
const fs = __importStar(require(
|
|
29
|
-
const path = __importStar(require(
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
45
|
+
const fs = __importStar(require('fs-extra'));
|
|
46
|
+
const path = __importStar(require('path'));
|
|
30
47
|
function updatePackageJson() {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
const commonPackageJsonPath = path.join(__dirname, '..', '..', 'common', 'package.json');
|
|
49
|
+
const selfPackageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
50
|
+
console.log(`=== start to update package.json: ${selfPackageJsonPath}`);
|
|
51
|
+
const packageCommon = fs.readJSONSync(commonPackageJsonPath);
|
|
52
|
+
const packageSelf = fs.readJSONSync(selfPackageJsonPath);
|
|
53
|
+
const version = packageCommon.version;
|
|
54
|
+
packageSelf.dependencies['onnxruntime-common'] = `${version}`;
|
|
55
|
+
fs.writeJSONSync(selfPackageJsonPath, packageSelf, { spaces: 2 });
|
|
56
|
+
console.log('=== finished updating package.json.');
|
|
40
57
|
}
|
|
41
58
|
// update version of dependency "onnxruntime-common" before packing
|
|
42
59
|
updatePackageJson();
|
|
Binary file
|
|
Binary file
|