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: rewrite the parser gathering logic #1476

Merged
merged 4 commits into from
Jun 15, 2023

Conversation

jmcdo29
Copy link
Owner

@jmcdo29 jmcdo29 commented Nov 22, 2022

Instead of forcing the user to register one of the four paresers and being stuck with only those contexts, users can now add parers to a providers array and let the DiscoveryService find the parsers and then use the correct one based on the context type. This allows for custom contexts like necord's discord context, to have parsers created and used for it without having to change the context or assume a certain type for it.

Docs, changesets, and extra tests to come soon

related: #1451

@changeset-bot
Copy link

changeset-bot bot commented Nov 22, 2022

🦋 Changeset detected

Latest commit: 36ff6d0

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

This PR includes changesets to release 14 packages
Name Type
@ogma/nestjs-module Major
@ogma/platform-express Major
@ogma/platform-fastify Major
@ogma/platform-graphql Major
@ogma/platform-graphql-fastify Major
@ogma/platform-grpc Major
@ogma/platform-kafka Major
@ogma/platform-mqtt Major
@ogma/platform-nats Major
@ogma/platform-rabbitmq Major
@ogma/platform-redis Major
@ogma/platform-socket.io Major
@ogma/platform-tcp Major
@ogma/platform-ws Major

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

@nx-cloud
Copy link

nx-cloud bot commented Nov 22, 2022

☁️ Nx Cloud Report

We didn't find any information for the current pull request with the commit 9a3daa2.
You might need to set the 'NX_BRANCH' environment variable in your CI pipeline.

Check the Nx Cloud Github Integration documentation for more information.


Sent with 💌 from NxCloud.

@jmcdo29 jmcdo29 changed the base branch from feat/nest-module-5.0.0 to feat/nestjs-module-5.0.0 June 15, 2023 15:17
Instead of forcing the user to register one of the four paresers and being
stuck with only those contexts, users can now add parers to a `providers`
array and let the `DiscoveryService` find the parsers and then use the
correct one based on the context type. This allows for custom contexts
like necord's `discord` context, to have parsers created and used for it
without having to change the context or assume a certain type for it.

Docs, changesets, and extra tests to come soon

related: #1451
@jmcdo29 jmcdo29 merged commit 6bd1899 into feat/nestjs-module-5.0.0 Jun 15, 2023
@jmcdo29 jmcdo29 deleted the feat/context-parser branch June 15, 2023 17:41
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.

1 participant