node-api-dotnet 0.8.19 → 0.9.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/index.d.ts CHANGED
@@ -18,16 +18,16 @@
18
18
  * To load a specific version of .NET, append the target framework moniker to the package name:
19
19
  * ::: code-group
20
20
  * ```JavaScript [ES (TS or JS)]
21
- * import dotnet from 'node-api-dotnet/net6.0';
21
+ * import dotnet from 'node-api-dotnet/net8.0';
22
22
  * ```
23
23
  * ```TypeScript [CommonJS (TS)]
24
- * import * as dotnet from 'node-api-dotnet/net6.0';
24
+ * import * as dotnet from 'node-api-dotnet/net8.0';
25
25
  * ```
26
26
  * ```JavaScript [CommonJS (JS)]
27
- * const dotnet = require('node-api-dotnet/net6.0');
27
+ * const dotnet = require('node-api-dotnet/net8.0');
28
28
  * ```
29
29
  * :::
30
- * Currently the supported target frameworks are `net472`, `net6.0`, and `net8.0`.
30
+ * Currently the supported target frameworks are `net472`, `net8.0`, and `net9.0`.
31
31
  * @module node-api-dotnet
32
32
  */
33
33
  declare module 'node-api-dotnet' {
package/init.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // for each supported target framework version, generated by pack.js:
6
6
  // - index.js
7
7
  // - net472.js
8
- // - net6.0.js
8
+ // - net8.0.js
9
9
  // - ...
10
10
  module.exports = initialize;
11
11
 
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "runtimeOptions": {
3
- "tfm": "net6.0",
3
+ "tfm": "net9.0",
4
4
  "framework": {
5
5
  "name": "Microsoft.NETCore.App",
6
- "version": "6.0.0"
6
+ "version": "9.0.0"
7
7
  },
8
8
  "configProperties": {
9
9
  "System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
10
+ "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
10
11
  "System.Runtime.InteropServices.EnableConsumingManagedCodeFromNativeHosting": true
11
12
  }
12
13
  }
package/net9.0.js ADDED
@@ -0,0 +1,2 @@
1
+ const initialize = require('./init');
2
+ module.exports = initialize('net9.0');
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "node-api-dotnet",
3
- "version": "0.8.19",
3
+ "version": "0.9.1",
4
4
  "description": "Node-API bindings for .Net",
5
5
  "license": "MIT",
6
6
  "author": "Microsoft",
7
7
  "type": "commonjs",
8
8
  "exports": {
9
9
  ".": "./index.js",
10
+ "./net9.0": "./net9.0.js",
10
11
  "./net8.0": "./net8.0.js",
11
- "./net6.0": "./net6.0.js",
12
12
  "./net472": "./net472.js"
13
13
  },
14
14
  "types": "./index.d.ts",
package/net6.0.js DELETED
@@ -1,2 +0,0 @@
1
- const initialize = require('./init');
2
- module.exports = initialize('net6.0');
File without changes