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

feat(NODE-5420)!: remove JS bindings from libmongocrypt #667

Merged
merged 12 commits into from
Jul 18, 2023

Conversation

baileympearson
Copy link
Contributor

@baileympearson baileympearson commented Jul 10, 2023

This is a large PR, but viewing commit-by-commit helps with the changes. The first commit removes all the JS files.

Summary of changes

  • All JS bindings logic has been removed.
  • Node testing tasks have been removed from CI.
  • The c++ src now lives in the addon folder. Build scripts have been updated to look here.
  • all unnecessary dependencies have been removed from the package.json.
  • The index.js file has been converted to TS, now lives in src and contains TS types for the MongoCrypt class and the supporting C++ Javascript classes.
  • A prepare script has been added that builds the TS bindings and puts them in the lib folder (copied from the driver).

I suggest viewing this commit's diff: 077e61e

@baileympearson baileympearson changed the title add v6 deprecations feat(NODE-5420): remove JS bindings from libmongocrypt Jul 11, 2023
@baileympearson baileympearson force-pushed the no-story-remove-logic-from-bindings branch from d6928a8 to 8109f45 Compare July 11, 2023 19:33
@baileympearson baileympearson marked this pull request as ready for review July 11, 2023 19:36
@durran durran self-requested a review July 13, 2023 13:14
bindings/node/package.json Show resolved Hide resolved
@baileympearson baileympearson force-pushed the no-story-remove-logic-from-bindings branch from 8109f45 to d484295 Compare July 13, 2023 16:07
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

Mostly good to go, we can roll back some deletions to save us effort in the next piece of work

bindings/node/src/index.ts Outdated Show resolved Hide resolved
bindings/node/src/index.ts Show resolved Hide resolved
.evergreen/config.yml Show resolved Hide resolved
bindings/node/.eslintrc.json Outdated Show resolved Hide resolved
bindings/node/test/types/index.test-d.ts Show resolved Hide resolved
bindings/node/test/release.test.js Show resolved Hide resolved
bindings/node/test/index.test.js Show resolved Hide resolved
bindings/node/package.json Outdated Show resolved Hide resolved
bindings/node/tsconfig.json Outdated Show resolved Hide resolved
bindings/node/src/index.ts Outdated Show resolved Hide resolved
@nbbeeken nbbeeken self-assigned this Jul 13, 2023
@nbbeeken nbbeeken added the js-primary-review In initial review with Node.js team label Jul 13, 2023
@baileympearson baileympearson requested a review from nbbeeken July 13, 2023 19:36
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

I can check over the changes Anna requested, and there's some thumbs up but no change (the export one here). I think we only discussed the type tests offline, but post a "from slack: X" if I'm forgetting, ty!

@baileympearson baileympearson requested a review from nbbeeken July 17, 2023 22:04
bindings/node/package.json Outdated Show resolved Hide resolved
bindings/node/.eslintrc.json Outdated Show resolved Hide resolved
bindings/node/test/index.test.js Show resolved Hide resolved
bindings/node/test/types/index.test-d.ts Show resolved Hide resolved
@baileympearson baileympearson requested a review from nbbeeken July 18, 2023 19:42
@baileympearson baileympearson changed the title feat(NODE-5420): remove JS bindings from libmongocrypt feat!(NODE-5420): remove JS bindings from libmongocrypt Jul 18, 2023
@baileympearson baileympearson changed the title feat!(NODE-5420): remove JS bindings from libmongocrypt feat(NODE-5420)!: remove JS bindings from libmongocrypt Jul 18, 2023
@nbbeeken nbbeeken merged commit 2f7bd46 into master Jul 18, 2023
@nbbeeken nbbeeken deleted the no-story-remove-logic-from-bindings branch July 18, 2023 21:30
@baileympearson baileympearson restored the no-story-remove-logic-from-bindings branch July 27, 2023 18:51
@baileympearson baileympearson deleted the no-story-remove-logic-from-bindings branch October 6, 2023 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js-primary-review In initial review with Node.js team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants