-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat(NODE-6588): add ssdlc to zstd #43
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b3eba5f
add ssdlc action
baileympearson 5073612
clean run
baileympearson 03a9b5e
clean run
baileympearson ba43566
remove postfix
baileympearson e4cdb2c
full matrix
baileympearson 9183ab0
add back publish step
baileympearson 61ee3ad
update readme
baileympearson e4d75d1
comment
baileympearson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,35 @@ Zstandard compression library for Node.js | |
npm install @mongodb-js/zstd | ||
``` | ||
|
||
### Release Integrity | ||
|
||
Releases are created automatically and signed using the [Node team's GPG key](https://pgp.mongodb.com/node-driver.asc). This applies to the git tag as well as all release packages provided as part of a GitHub release. To verify the provided packages, download the key and import it using gpg: | ||
|
||
``` | ||
gpg --import node-driver.asc | ||
``` | ||
|
||
The GitHub release contains a detached signature file for the NPM package (named | ||
`mongodb-js-zstd-X.Y.Z.tgz.sig`). | ||
|
||
The following command returns the link npm package. | ||
```shell | ||
npm view @mongodb-js/[email protected] dist.tarball | ||
``` | ||
|
||
Using the result of the above command, a `curl` command can return the official npm package for the release. | ||
|
||
To verify the integrity of the downloaded package, run the following command: | ||
```shell | ||
gpg --verify mongodb-js-zstd-X.Y.Z.tgz.sig mongodb-js-zstd-X.Y.Z.tgz | ||
``` | ||
|
||
>[!Note] | ||
No verification is done when using npm to install the package. The contents of the Github tarball and npm's tarball are identical. | ||
|
||
To verify the native `.node` packages, follow the same steps as above using `mongodb-js-zstd-X.Y.Z-platform.tgz` and the corresponding `.sig` file. | ||
|
||
|
||
## OS Support matrix | ||
|
||
| | node12 | node14 | node16 | node18 | node20 | | ||
|
@@ -72,6 +101,11 @@ import { compress, decompress } from '@mongodb-js/zstd'; | |
|
||
## Running Tests | ||
|
||
First, install and build the zstd library: | ||
|
||
`npm run install-zstd` | ||
|
||
Then: | ||
`npm test` | ||
|
||
## Releasing | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we ignore the install scripts here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do the same for kerberos and mongodb-client-encryption.
By default,
npm i
on our packages with native bindings downloads a prebuilt copy of our C++ code (there is aninstall
script) or attempts to compile the bindings. All we need for this step is the JS dependencies