-
Notifications
You must be signed in to change notification settings - Fork 171
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
Conversation
f4e3e76
to
5c260c9
Compare
@@ -220,24 +220,12 @@ Templates: | |||
CodeCodeArgsTemplate: &CodeCodeArgsTemplate null | |||
CodeScopeTemplate: &CodeScopeTemplate null | |||
CodeScopeArgsTemplate: &CodeScopeArgsTemplate null | |||
ObjectIdToStringTemplate: &ObjectIdToStringTemplate !!js/function > |
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.
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 |
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.
this syntax is not valid anymore
).to.equal(test.output[output]); | ||
}); | ||
} | ||
runner: !<tag:yaml.org,2002:js/function> |- |
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.
I'm sorry, but what is this? Is this to have syntax highlighting?
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.
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
bson-transpilers
python
andjavascript
as input inbson-transpiler
shell
input tests cases to match thejavascript
input tests casesThe motivation for doing this is: