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

fix FunctionCallOptions versioning #432

Conversation

OmarTawfik
Copy link
Collaborator

  • It was introduced in 0.6.2 as zeroOrMore
  • In 0.8.0 it became optional

Notice the explosion in size of 01-base-expressions/productions.yml and the generated parsers.rs, as I suspect these versions will only keep growing, making it harder to read, understand, and diff its contents.

I think in the future we might benefit from being able to specify each operator in its own Production, where it can be versioned separately. The main Expression.operators list can remain unversioned.

@OmarTawfik OmarTawfik requested a review from a team as a code owner May 2, 2023 19:06
@OmarTawfik OmarTawfik enabled auto-merge May 2, 2023 19:06
@changeset-bot
Copy link

changeset-bot bot commented May 2, 2023

🦋 Changeset detected

Latest commit: 3fa18ca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
changelog Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@OmarTawfik OmarTawfik added this pull request to the merge queue May 3, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 3, 2023
@OmarTawfik OmarTawfik force-pushed the OmarTawfik/breaking-changes branch from c543345 to fb5da0d Compare May 3, 2023 19:28
- It was introduced in `0.6.2` as `zeroOrMore`
- In `0.8.0` it became `optional`

Notice the explosion in size of `01-base-expressions/productions.yml` and the generated `parsers.rs`, as I suspect these versions will only keep growing, making it harder to read, understand, and diff its contents.

I think in the future we might benefit from being able to specify each operator in its own `Production`, where it can be versioned separately. The main `Expression.operators` list can remain unversioned.
@OmarTawfik OmarTawfik force-pushed the OmarTawfik/breaking-changes branch from fb5da0d to 3fa18ca Compare May 3, 2023 19:54
@OmarTawfik OmarTawfik enabled auto-merge May 3, 2023 19:54
@OmarTawfik OmarTawfik added this pull request to the merge queue May 3, 2023
Merged via the queue into NomicFoundation:main with commit 1d1a8bb May 3, 2023
@OmarTawfik OmarTawfik deleted the OmarTawfik/breaking-changes branch May 3, 2023 20:16
@github-actions github-actions bot mentioned this pull request May 3, 2023
OmarTawfik added a commit that referenced this pull request May 4, 2023
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @nomicfoundation/slang@0.2.0

### Minor Changes

- [#435](#435)
[`2a5b193`](2a5b193)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support user
defined operators

### Patch Changes

- [#416](#416)
[`fb977a5`](fb977a5)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix primary
expressions parser order

- [#434](#434)
[`beb3708`](beb3708)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
UnicodeStringLiteral versioning

- [#430](#430)
[`8b7492e`](8b7492e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - update READMEs
with links to packages and user guides.

- [#425](#425)
[`9b49b3d`](9b49b3d)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add user guides
to rust crate and npm packages.

- [#432](#432)
[`1d1a8bb`](1d1a8bb)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
FunctionCallOptions versioning

## changelog@0.2.0

### Minor Changes

- [#435](#435)
[`2a5b193`](2a5b193)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support user
defined operators

### Patch Changes

- [#416](#416)
[`fb977a5`](fb977a5)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix primary
expressions parser order

- [#434](#434)
[`beb3708`](beb3708)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
UnicodeStringLiteral versioning

- [#430](#430)
[`8b7492e`](8b7492e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - update READMEs
with links to packages and user guides.

- [#425](#425)
[`9b49b3d`](9b49b3d)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add user guides
to rust crate and npm packages.

- [#432](#432)
[`1d1a8bb`](1d1a8bb)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix
FunctionCallOptions versioning

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: OmarTawfik <15987992+OmarTawfik@users.noreply.github.com>
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