This is a breaking change and will likely require some small changes to your cmake config to keep your project building.
Summary
A lot of work has gone into this release, to try and make the general usage of the library smoother. It has better support for building modules with node-api. The on disk footprint of the library is much smaller than before, with various dependencies removed, or updated.
Upgrading
We recommend having the following at the top of your cmake file, before the project(...) definition.
This will force MSVC to do a MT build, so if you were doing that another way, it should be possible to remove that. If you need to keep it building as MD, you can add set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL") in your cmake file.
If you are using node-api, make sure that your package.json has the following, but with the correct NAPI_VERSION filled in. We use this to autodetect that your module is building with node-api.
"binary": {
"napi_versions": [7]
},
You should also add the following to the bottom of your cmake file. This lets us avoid downloading the full nodejs headers, and lets us use bundle a much more lightweight copy instead
if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
# Generate node.lib
execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
endif()
in your file, it is no longer needed. We will inject the correct include paths for you, similar to what is done for nan.
That should be everything.
If we missed something in these steps, or if you are having problems getting your module building again, let us know in an issue.
All changes:
update dependencies
replace some dependencies with modern language features
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/aws/aws-iot-device-sdk-js-v2/network/alerts).
Bumps the npm_and_yarn group group with 2 updates: cmake-js and jest-puppeteer.
Updates
cmake-js
from 6.3.2 to 7.2.1Release notes
Sourced from cmake-js's releases.
... (truncated)
Changelog
Sourced from cmake-js's changelog.
... (truncated)
Commits
6a2a50b
v7.2.114525bf
fix: update find-visualstudio to remove support for VS20156eb7ea3
fix: update find-visualstudio to support Windows11SDKa1c1014
v7.2.046a0f84
chore: update dependenciesc63c9f7
chore: fix windows x86 tests8621084
chore: update debian versionb7aeab6
chore: fix test failurescea3103
chore: update cmake version for testse2452ee
fix: Only add build type toCMAKE_LIBRARY_OUTPUT_DIRECTORY
if needed (#299)Updates
jest-puppeteer
from 5.0.4 to 9.0.2Release notes
Sourced from jest-puppeteer's releases.
... (truncated)
Changelog
Sourced from jest-puppeteer's changelog.
... (truncated)
Commits
648701a
v9.0.2ae9245f
chore: upgrade dependencies (#571)76ed6ee
v9.0.15cfee1f
fix: fix compatibility with Puppeteer v21 (#566)e13d1dd
v9.0.0d7d9833
feat: drop Node.js v14 support7becfaf
chore: add ESLint plugins for Jest, TypeScript (#550)f756dc3
v8.0.6861c07d
fix(types): fix exports issues05992b2
v8.0.5Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show