diff --git a/src/1-getting-started/1_hello_world/nan/package.json b/src/1-getting-started/1_hello_world/nan/package.json index b09778c3..f6e598aa 100644 --- a/src/1-getting-started/1_hello_world/nan/package.json +++ b/src/1-getting-started/1_hello_world/nan/package.json @@ -5,7 +5,7 @@ "main": "hello.js", "private": true, "dependencies": { - "bindings": "~1.2.1", + "bindings": "~1.5.0", "nan": "^2.0.0" }, "scripts": { diff --git a/src/1-getting-started/1_hello_world/napi/package.json b/src/1-getting-started/1_hello_world/napi/package.json index 513b5622..3cfc8fbf 100644 --- a/src/1-getting-started/1_hello_world/napi/package.json +++ b/src/1-getting-started/1_hello_world/napi/package.json @@ -5,7 +5,7 @@ "main": "hello.js", "private": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" }, "scripts": { "test": "node hello.js" diff --git a/src/1-getting-started/1_hello_world/node-addon-api-addon-class/package.json b/src/1-getting-started/1_hello_world/node-addon-api-addon-class/package.json index 41bcd603..ced1b8a2 100644 --- a/src/1-getting-started/1_hello_world/node-addon-api-addon-class/package.json +++ b/src/1-getting-started/1_hello_world/node-addon-api-addon-class/package.json @@ -6,7 +6,7 @@ "private": true, "dependencies": { "bindings": "~1.5.0", - "node-addon-api": "^7.0.0" + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node hello.js" diff --git a/src/1-getting-started/1_hello_world/node-addon-api/package.json b/src/1-getting-started/1_hello_world/node-addon-api/package.json index f70a69dd..ced1b8a2 100644 --- a/src/1-getting-started/1_hello_world/node-addon-api/package.json +++ b/src/1-getting-started/1_hello_world/node-addon-api/package.json @@ -5,8 +5,8 @@ "main": "hello.js", "private": true, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^1.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node hello.js" diff --git a/src/1-getting-started/2_function_arguments/napi/package.json b/src/1-getting-started/2_function_arguments/napi/package.json index 053970f6..76fdaf4c 100644 --- a/src/1-getting-started/2_function_arguments/napi/package.json +++ b/src/1-getting-started/2_function_arguments/napi/package.json @@ -5,7 +5,7 @@ "main": "addon.js", "private": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" }, "scripts": { "test": "node addon.js" diff --git a/src/1-getting-started/2_function_arguments/node-addon-api/package.json b/src/1-getting-started/2_function_arguments/node-addon-api/package.json index cc4b6bd1..53fb427d 100644 --- a/src/1-getting-started/2_function_arguments/node-addon-api/package.json +++ b/src/1-getting-started/2_function_arguments/node-addon-api/package.json @@ -6,7 +6,7 @@ "private": true, "dependencies": { "bindings": "~1.5.0", - "node-addon-api": "^1.0.0" + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node addon.js" diff --git a/src/1-getting-started/3_callbacks/napi/package.json b/src/1-getting-started/3_callbacks/napi/package.json index 6c73da08..2f7dedfd 100644 --- a/src/1-getting-started/3_callbacks/napi/package.json +++ b/src/1-getting-started/3_callbacks/napi/package.json @@ -6,6 +6,6 @@ "private": true, "gypfile": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" } } diff --git a/src/1-getting-started/3_callbacks/node-addon-api/package.json b/src/1-getting-started/3_callbacks/node-addon-api/package.json index fffafd93..80d6f013 100644 --- a/src/1-getting-started/3_callbacks/node-addon-api/package.json +++ b/src/1-getting-started/3_callbacks/node-addon-api/package.json @@ -7,6 +7,6 @@ "gypfile": true, "dependencies": { "bindings": "~1.5.0", - "node-addon-api": "^1.0.0" + "node-addon-api": "^8.1.0" } } diff --git a/src/1-getting-started/4_object_factory/napi/package.json b/src/1-getting-started/4_object_factory/napi/package.json index ce8cfceb..6057fb31 100644 --- a/src/1-getting-started/4_object_factory/napi/package.json +++ b/src/1-getting-started/4_object_factory/napi/package.json @@ -6,6 +6,6 @@ "private": true, "gypfile": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" } } diff --git a/src/1-getting-started/5_function_factory/node-addon-api/package.json b/src/1-getting-started/5_function_factory/node-addon-api/package.json index a93c8b4f..b842617a 100644 --- a/src/1-getting-started/5_function_factory/node-addon-api/package.json +++ b/src/1-getting-started/5_function_factory/node-addon-api/package.json @@ -6,7 +6,7 @@ "private": true, "gypfile": true, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^7.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" } } diff --git a/src/1-getting-started/6_object_wrap/node-addon-api/package.json b/src/1-getting-started/6_object_wrap/node-addon-api/package.json index 1d2b4b91..824a21c9 100644 --- a/src/1-getting-started/6_object_wrap/node-addon-api/package.json +++ b/src/1-getting-started/6_object_wrap/node-addon-api/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "bindings": "~1.5.0", - "node-addon-api": "^3.0.0" + "node-addon-api": "^8.1.0" } } diff --git a/src/1-getting-started/7_factory_wrap/nan/package.json b/src/1-getting-started/7_factory_wrap/nan/package.json index 7ff4adb6..5f102485 100644 --- a/src/1-getting-started/7_factory_wrap/nan/package.json +++ b/src/1-getting-started/7_factory_wrap/nan/package.json @@ -6,7 +6,7 @@ "private": true, "gypfile": true, "dependencies": { - "bindings": "~1.2.1", + "bindings": "~1.5.0", "nan": "^2.0.0" } } diff --git a/src/1-getting-started/7_factory_wrap/node-addon-api/package.json b/src/1-getting-started/7_factory_wrap/node-addon-api/package.json index 8ff8ac30..86dc065a 100644 --- a/src/1-getting-started/7_factory_wrap/node-addon-api/package.json +++ b/src/1-getting-started/7_factory_wrap/node-addon-api/package.json @@ -9,7 +9,7 @@ "node": "~10 >=10.20 || >=12.17" }, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^7.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" } } diff --git a/src/1-getting-started/a-first-project/node-addon-api/package.json b/src/1-getting-started/a-first-project/node-addon-api/package.json index 1342f3aa..41dd1662 100644 --- a/src/1-getting-started/a-first-project/node-addon-api/package.json +++ b/src/1-getting-started/a-first-project/node-addon-api/package.json @@ -2,7 +2,7 @@ "main": "lib/binding.js", "private": true, "dependencies": { - "node-addon-api": "^1.1.0" + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node --napi-modules ./test/test_binding.js" diff --git a/src/2-js-to-native-conversion/8_passing_wrapped/node-addon-api/package.json b/src/2-js-to-native-conversion/8_passing_wrapped/node-addon-api/package.json index 8b5fe1d7..133916cb 100644 --- a/src/2-js-to-native-conversion/8_passing_wrapped/node-addon-api/package.json +++ b/src/2-js-to-native-conversion/8_passing_wrapped/node-addon-api/package.json @@ -10,6 +10,6 @@ }, "dependencies": { "bindings": "~1.5.0", - "node-addon-api": "^3.0.0" + "node-addon-api": "^8.1.0" } } diff --git a/src/2-js-to-native-conversion/array_buffer_to_native/node-addon-api/package.json b/src/2-js-to-native-conversion/array_buffer_to_native/node-addon-api/package.json index 7b21eac7..9c78fb5f 100644 --- a/src/2-js-to-native-conversion/array_buffer_to_native/node-addon-api/package.json +++ b/src/2-js-to-native-conversion/array_buffer_to_native/node-addon-api/package.json @@ -5,8 +5,8 @@ "main": "index.js", "private": true, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^1.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node index.js" diff --git a/src/2-js-to-native-conversion/object-wrap-demo/node-addon-api/package.json b/src/2-js-to-native-conversion/object-wrap-demo/node-addon-api/package.json index bf7fc8f7..03f5fcb5 100644 --- a/src/2-js-to-native-conversion/object-wrap-demo/node-addon-api/package.json +++ b/src/2-js-to-native-conversion/object-wrap-demo/node-addon-api/package.json @@ -2,7 +2,7 @@ "main": "lib/binding.js", "private": true, "dependencies": { - "node-addon-api": "^1.1.0" + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node --napi-modules ./test/test_binding.js" diff --git a/src/2-js-to-native-conversion/typed_array_to_native/node-addon-api/package.json b/src/2-js-to-native-conversion/typed_array_to_native/node-addon-api/package.json index 14aba6ec..c2364f2a 100644 --- a/src/2-js-to-native-conversion/typed_array_to_native/node-addon-api/package.json +++ b/src/2-js-to-native-conversion/typed_array_to_native/node-addon-api/package.json @@ -5,8 +5,8 @@ "main": "index.js", "private": true, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^1.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node index.js" diff --git a/src/3-context-awareness/napi/package.json b/src/3-context-awareness/napi/package.json index 7b082b4d..b7529358 100644 --- a/src/3-context-awareness/napi/package.json +++ b/src/3-context-awareness/napi/package.json @@ -12,6 +12,6 @@ }, "gypfile": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" } } diff --git a/src/3-context-awareness/node_10/package.json b/src/3-context-awareness/node_10/package.json index 7b082b4d..b7529358 100644 --- a/src/3-context-awareness/node_10/package.json +++ b/src/3-context-awareness/node_10/package.json @@ -12,6 +12,6 @@ }, "gypfile": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" } } diff --git a/src/5-async-work/async-iterator/node-addon-api/package.json b/src/5-async-work/async-iterator/node-addon-api/package.json index afd9a6db..36fa428b 100644 --- a/src/5-async-work/async-iterator/node-addon-api/package.json +++ b/src/5-async-work/async-iterator/node-addon-api/package.json @@ -6,8 +6,8 @@ "private": true, "dependencies": { "bindings": "^1.5.0", - "cmake-js": "^6.3.0", - "node-addon-api": "^5.0.0" + "cmake-js": "^7.3.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node index.js", diff --git a/src/5-async-work/async_work_thread_safe_function/napi/package.json b/src/5-async-work/async_work_thread_safe_function/napi/package.json index 4a02fb21..cdcc7e6f 100644 --- a/src/5-async-work/async_work_thread_safe_function/napi/package.json +++ b/src/5-async-work/async_work_thread_safe_function/napi/package.json @@ -5,7 +5,7 @@ "main": "index.js", "private": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" }, "engines": { "node": ">= 10.6.0" diff --git a/src/5-async-work/napi-asyncworker-example/node-addon-api/package.json b/src/5-async-work/napi-asyncworker-example/node-addon-api/package.json index c5d3cf0e..8e99c8c1 100644 --- a/src/5-async-work/napi-asyncworker-example/node-addon-api/package.json +++ b/src/5-async-work/napi-asyncworker-example/node-addon-api/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "main": "test/Test.js", "dependencies": { - "node-addon-api": "^1.1.0" + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node --napi-modules ./test/Test.js" diff --git a/src/6-threadsafe-function/promise-callback-demo/node-addon-api/package.json b/src/6-threadsafe-function/promise-callback-demo/node-addon-api/package.json index 973028b3..3b4b426f 100644 --- a/src/6-threadsafe-function/promise-callback-demo/node-addon-api/package.json +++ b/src/6-threadsafe-function/promise-callback-demo/node-addon-api/package.json @@ -3,7 +3,7 @@ "main": "test/index.js", "private": true, "dependencies": { - "node-addon-api": "^4.0.0" + "node-addon-api": "^8.1.0" }, "scripts": { "install": "node-gyp rebuild && node test" diff --git a/src/6-threadsafe-function/thread_safe_function_round_trip/napi/package.json b/src/6-threadsafe-function/thread_safe_function_round_trip/napi/package.json index b00cf6e5..3f09af52 100644 --- a/src/6-threadsafe-function/thread_safe_function_round_trip/napi/package.json +++ b/src/6-threadsafe-function/thread_safe_function_round_trip/napi/package.json @@ -5,7 +5,7 @@ "main": "index.js", "private": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" }, "engines": { "node": ">= 10.6.0" diff --git a/src/6-threadsafe-function/thread_safe_function_with_object_wrap/node-addon-api/package.json b/src/6-threadsafe-function/thread_safe_function_with_object_wrap/node-addon-api/package.json index 201cfdf9..325185af 100644 --- a/src/6-threadsafe-function/thread_safe_function_with_object_wrap/node-addon-api/package.json +++ b/src/6-threadsafe-function/thread_safe_function_with_object_wrap/node-addon-api/package.json @@ -6,6 +6,6 @@ "author": "", "dependencies": { "bindings": "*", - "node-addon-api": "^7.0.0" + "node-addon-api": "^8.1.0" } } diff --git a/src/6-threadsafe-function/threadsafe-async-iterator/node-addon-api/package.json b/src/6-threadsafe-function/threadsafe-async-iterator/node-addon-api/package.json index 4822ae50..1054630e 100644 --- a/src/6-threadsafe-function/threadsafe-async-iterator/node-addon-api/package.json +++ b/src/6-threadsafe-function/threadsafe-async-iterator/node-addon-api/package.json @@ -6,8 +6,8 @@ "private": true, "dependencies": { "bindings": "^1.5.0", - "cmake-js": "^6.3.0", - "node-addon-api": "^5.0.0" + "cmake-js": "^7.3.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node index.js", diff --git a/src/6-threadsafe-function/typed_threadsafe_function/node-addon-api/package.json b/src/6-threadsafe-function/typed_threadsafe_function/node-addon-api/package.json index e92f4dfe..b52bf801 100644 --- a/src/6-threadsafe-function/typed_threadsafe_function/node-addon-api/package.json +++ b/src/6-threadsafe-function/typed_threadsafe_function/node-addon-api/package.json @@ -5,9 +5,9 @@ "main": "index.js", "private": true, "dependencies": { - "bindings": "~1.2.1", - "cmake-js": "^6.1.0", - "node-addon-api": "^4.0.0" + "bindings": "~1.5.0", + "cmake-js": "^7.3.0", + "node-addon-api": "^8.1.0" }, "scripts": { "test": "node index.js", diff --git a/src/8-tooling/build_with_cmake/napi/package.json b/src/8-tooling/build_with_cmake/napi/package.json index 10f23730..6d62538e 100644 --- a/src/8-tooling/build_with_cmake/napi/package.json +++ b/src/8-tooling/build_with_cmake/napi/package.json @@ -5,7 +5,7 @@ "main": "hello.js", "private": true, "dependencies": { - "bindings": "~1.2.1" + "bindings": "~1.5.0" }, "scripts": { "install": "cmake-js compile", diff --git a/src/8-tooling/build_with_cmake/node-addon-api/package.json b/src/8-tooling/build_with_cmake/node-addon-api/package.json index 6aedf0d0..ccb919b9 100644 --- a/src/8-tooling/build_with_cmake/node-addon-api/package.json +++ b/src/8-tooling/build_with_cmake/node-addon-api/package.json @@ -5,8 +5,8 @@ "main": "hello.js", "private": true, "dependencies": { - "bindings": "~1.2.1", - "node-addon-api": "^1.0.0" + "bindings": "~1.5.0", + "node-addon-api": "^8.1.0" }, "scripts": { "install": "cmake-js compile", diff --git a/src/8-tooling/typescript_with_addon/node-addon-api/package.json b/src/8-tooling/typescript_with_addon/node-addon-api/package.json index 5749a23e..f070d915 100644 --- a/src/8-tooling/typescript_with_addon/node-addon-api/package.json +++ b/src/8-tooling/typescript_with_addon/node-addon-api/package.json @@ -4,14 +4,14 @@ "description": "TypeScript calling Javascript calling C++ calling C with building with CMake and node-addon-api C++ wrapper.", "dependencies": { "bindings": "^1.5.0", - "node-addon-api": "^3.0.2" + "node-addon-api": "^8.1.0" }, "scripts": { "install": "npx cmake-js compile", "test": "ts-node index.ts" }, "devDependencies": { - "ts-node": "^9.0.0", + "ts-node": "^10.9.2", "typescript": "^5.2.2" } }