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(bson-transpiler)!: bump bson and remove unused inputs #5410

Merged
merged 6 commits into from
Feb 15, 2024

Conversation

mcasimir
Copy link
Contributor

@mcasimir mcasimir commented Feb 2, 2024

  • Bump bson in bson-transpilers
  • removes "support" and code for the unused python and javascript as input in bson-transpiler
  • expand shell input tests cases to match the javascript input tests cases
  • fixes failing tests and missing bson types for shell
  • deletes C# grammars, which where never used as we don't have a C# input

The motivation for doing this is:

  • This is a first step towards cleaning this package up a bit and reducing the maintenance overhead so we can at least keep driver dependencies up-to-date. I added a note in the readme pointing to a commit that still has Python.
  • Grammars and symbols are bundled with VSCode and Compass and brings a significant amount of code.

@github-actions github-actions bot added the feat label Feb 2, 2024
@mcasimir mcasimir changed the title feat(bson-transpiler)!: remove unused inputs WIP feat(bson-transpiler)!: remove unused inputs Feb 2, 2024
@mcasimir mcasimir force-pushed the bump-bson-in-bson-transpilers branch from f4e3e76 to 5c260c9 Compare February 15, 2024 11:08
@mcasimir mcasimir changed the title WIP feat(bson-transpiler)!: remove unused inputs WIP feat(bson-transpiler)!: bump bson and remove unused inputs Feb 15, 2024
@mcasimir mcasimir changed the title WIP feat(bson-transpiler)!: bump bson and remove unused inputs feat(bson-transpiler)!: bump bson and remove unused inputs Feb 15, 2024
@@ -220,24 +220,12 @@ Templates:
CodeCodeArgsTemplate: &CodeCodeArgsTemplate null
CodeScopeTemplate: &CodeScopeTemplate null
CodeScopeArgsTemplate: &CodeScopeArgsTemplate null
ObjectIdToStringTemplate: &ObjectIdToStringTemplate !!js/function >
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was not necessary, only breaks some of the transformations that are correctly handled by default

@@ -273,50 +236,12 @@ tests:
'$id' => BSON::ObjectId('5bfeee5ffa63a31985db9e5e')
).id
Long-methods:
- input:
shell: NumberLong(429496729601).top
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this syntax is not valid anymore

@mcasimir mcasimir added the no release notes Fix or feature not for release notes label Feb 15, 2024
).to.equal(test.output[output]);
});
}
runner: !<tag:yaml.org,2002:js/function> |-
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry, but what is this? Is this to have syntax highlighting?

Copy link
Contributor Author

@mcasimir mcasimir Feb 15, 2024

Choose a reason for hiding this comment

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

Ah yeah, i don't know :). I did most of the changes with a script that parsed the yaml files, changed / replaced the tests, and wrote the file back with Yaml.dump. The yaml library generated that, i'm assuming is a fancier way to write this: !!js/function

@mcasimir mcasimir merged commit 1c016da into main Feb 15, 2024
16 of 17 checks passed
@mcasimir mcasimir deleted the bump-bson-in-bson-transpilers branch February 15, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat no release notes Fix or feature not for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants