-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
Query syntax problems with TypeBox 0.26 #3182
Comments
Is there any way to help move this along? The typebox dependency is very stale - nearly two years out of date. I'm happy to attempt a PR for this, but I'm not sure I completely follow the issue being described here. Can you provide a unit test that passes on 0.25 but fails on the latest version? Alternatively, is there a way we can use the latest typebox directly in our apps while feathers itself still relies on the older version? |
The update is probably still not possible without introducing a breaking change (as the breaking tests in #3532 showed before the logs expired). I recommend installing your own Typebox dependency in the latest version and using that to explicitly define the schemas you need including the query syntax you actually use. |
So if I understand right, the recommended path is for users to install typebox themselves to construct schemas. Does that mean we should avoid using Assuming this is true, it would be great to update the docs to reflect it. |
There was an attempt for compatibility in 962bd87 - I haven't tested it with newer versions of Typebox. |
Got it, so we need to construct our own query syntax or use The commit you linked was merged. Is there currently a unit test in the repo that was known to fail when upgrading? Like I said, I'm happy to assist here - but since I don't fully understand what part of |
The commit was merged but reverted later since it caused the issue described here. I put up a new PR to the latest TypeBox in #3565 might be worth iterating there. |
The query syntax helper creates two different types between TypeBox 0.25:
And 0.26:
While the local package tests are passing, in a generated app this means that any operator like
Will receive a TypeScript error like this:
The current solution is to revert to TypeBox 0.25 and probably add a better integration like
To v5.1
The text was updated successfully, but these errors were encountered: