Skip to content

feat(node): pull node binaries into separate packages (2)#197

Merged
gsilvestrin merged 2 commits into
mainfrom
gsilvestrin/nodejs_native_round2
Jun 15, 2023
Merged

feat(node): pull node binaries into separate packages (2)#197
gsilvestrin merged 2 commits into
mainfrom
gsilvestrin/nodejs_native_round2

Conversation

@gsilvestrin

@gsilvestrin gsilvestrin commented Jun 15, 2023

Copy link
Copy Markdown
Contributor

New Changes

  • Changed the publish task to run after a release is published
  • removed bump versions scripts since they are handled by another task
  • removed organization (@lance) from packages

Previous Changes

  • Refactors the Node module to load the shared library from a separate
    package. When a user does npm install vectordb, the correct optional
    dependency is automatically downloaded by npm.
  • Brings Rust and Node versions in alignment at 0.1.2.
  • Add scripts and instructions to build Linux and MacOS node artifacts
    locally.
  • Add instructions for publishing the npm module and crates.

@gsilvestrin gsilvestrin changed the title Gsilvestrin/nodejs native round2 feat(node): pull node binaries into separate packages (2) Jun 15, 2023
@gsilvestrin
gsilvestrin force-pushed the gsilvestrin/nodejs_native_round2 branch from 35bc144 to 5cca04f Compare June 15, 2023 21:16
Comment thread node/.npmignore
@@ -0,0 +1,4 @@
gen_test_data.py

@gsilvestrin gsilvestrin Jun 15, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want to move away from .npmignore in the future, it has a gotcha that makes npm ignore .gitignore and that can be confusing for us. Leaving if for now, but tracking it here #198

@gsilvestrin
gsilvestrin requested a review from wjones127 June 15, 2023 21:31
@gsilvestrin
gsilvestrin marked this pull request as ready for review June 15, 2023 21:31
Comment thread node/package-lock.json
Comment on lines +50 to +53
"vectordb-darwin-arm64": "0.1.2",
"vectordb-darwin-x64": "0.1.2",
"vectordb-linux-arm64-gnu": "0.1.2",
"vectordb-linux-x64-gnu": "0.1.2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does our increment version script handle incrementing these versions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, let me update it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done - versions are in sync now

@wjones127 wjones127 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. My main question is whether the version bump script handles the native sub packages.

wjones127 and others added 2 commits June 15, 2023 14:54
Changes:

* Refactors the Node module to load the shared library from a separate
package. When a user does `npm install vectordb`, the correct optional
dependency is automatically downloaded by npm.
* Brings Rust and Node versions in alignment at 0.1.2.
* Add scripts and instructions to build Linux and MacOS node artifacts
locally.
* Add instructions for publishing the npm module and crates.
- Changed the publish task to run after a release is published
- removed bump versions scripts since they are handled by another task
- removed organization (@lance) from packages
@gsilvestrin
gsilvestrin force-pushed the gsilvestrin/nodejs_native_round2 branch from 5cca04f to d34960a Compare June 15, 2023 21:57
@gsilvestrin
gsilvestrin requested a review from wjones127 June 15, 2023 21:58
@gsilvestrin

Copy link
Copy Markdown
Contributor Author

submitting this issue with improve bumping versions: #201

@gsilvestrin gsilvestrin reopened this Jun 15, 2023
@gsilvestrin
gsilvestrin merged commit 0724d41 into main Jun 15, 2023
@gsilvestrin
gsilvestrin deleted the gsilvestrin/nodejs_native_round2 branch June 15, 2023 23:15
gsilvestrin pushed a commit that referenced this pull request Jun 17, 2023
raghavdixit99 pushed a commit to raghavdixit99/lancedb that referenced this pull request Apr 5, 2024
* Refactors the Node module to load the shared library from a separate
package. When a user does `npm install vectordb`, the correct optional
dependency is automatically downloaded by npm.
* Add scripts and instructions to build Linux and MacOS node artifacts
locally.
* Add instructions for publishing the npm module and crates.

Co-authored-by: Will Jones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants