Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 242 #244

Merged
merged 3 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
cmake_policy(SET CMP0091 NEW)
cmake_policy(SET CMP0042 NEW)

project(node_datachannel VERSION 0.7.0)
project(node_datachannel VERSION 0.8.0)

# -Dnapi_build_version=8
add_definitions(-DNAPI_VERSION=8)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 18 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
{
"name": "node-datachannel",
"version": "0.7.1",
"version": "0.8.0-dev",
"description": "libdatachannel node bindings",
"type": "module",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./lib/index.cjs"
"import": {
"default": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"require": {
"default": "./lib/index.cjs",
"types": "./lib/index.d.cts"
}
},
"./polyfill": {
"import": "./polyfill/index.js",
"require": "./polyfill/polyfill.cjs"
"import": {
"default": "./polyfill/index.js",
"types": "./polyfill/index.d.ts"
},
"require": {
"default": "./polyfill/index.cjs",
"types": "./polyfill/index.d.cts"
}
}
},
"typings": "lib/index.d.ts",
"engines": {
"node": ">=16.0.0"
},
Expand All @@ -34,7 +45,7 @@
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"wpt-test": "node test/wpt.js",
"test-types": "tsc",
"prepublishOnly": "rollup lib/index.js --file lib/index.cjs --format cjs && rollup polyfill/index.js --file polyfill/polyfill.cjs --format cjs"
"prepublishOnly": "cp lib/index.d.ts lib/index.d.cts && cp polyfill/index.d.ts polyfill/index.d.cts && rollup lib/index.js --file lib/index.cjs --format cjs && rollup polyfill/index.js --file polyfill/index.cjs --format cjs"
},
"binary": {
"napi_versions": [
Expand Down
Loading