-
Notifications
You must be signed in to change notification settings - Fork 19
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
Regression: LDSingleKindContext
type not exported in 9.6.1
#626
Comments
Hey @klippx, Thank you for the report. There isn't any intention to remove this type, so we will check into how it isn't being exported. Thank you, |
Hello @klippx, This seems to be working fine when I attempt to reproduce. I also see in the .d.ts files that the type is still exported. My initial suspicion would be perhaps that the other associated packages are not getting their correct patch versions. I would make sure you are not explicitly depending on any of the What specific error does it produce? Does it say it isn't exported? Failing that if you could provide potentially a tsconfig file. Additionally please let me know if your project is commonjs or esm. The server package itself is still cjs, but we did add ESM support to some common packages, so I would like to validate that. The typescript code I used:
And the package.json that went with it:
And the very basic tsconfig.
Thank you, |
for what it's worth, i'm also experiencing this. |
Hello @thyming, Would you by chance be able to share your tsconfig? Also the link may not be taking me to what you intended to point out. Maybe a screenshot of the relevant part of the diff? Thank you, |
Also is it with a dependabot update, such as the original, or from manually updating the version? |
Theoretically this section should cause the tooling to do the correct thing.
|
the relevant part is: {
"extends": "@tsconfig/node20/tsconfig.json"
} |
Ok. Great. Thank you. |
@kinyoklion, the |
There are not any removed types in 9.6.1. The problem here is the way that multi-type bundles work and I am working to fix it at the moment. If module resolution is set to node16 or higher, then types are not working correctly. When a package supports both CJS and ESM the typing files themselves now need to be Our common library is now being used for client and server and needs ESM to support tree shaking and other features. |
I've set 9.6.0 to be tagged Thank you. |
I have published a pre-release version: If one of you could try this and let me know, that would be great. It has resolved the issue when I test locally using Details of the change are in this PR: #627 Sorry for the issue. Thank you, |
Fixed in 9.7.0. Please let me know if you encounter any additional issues. Thank you, |
Is this a support request?
No
Describe the bug
My code:
This has pretty much always worked, and still works in 9.6.0. But when renovate want to merge a patch update to 9.6.1 then this is no longer available and breaks our build.
To reproduce
I think you can figure it out :)
Expected behavior
All types that were exported before shall still be exported in a patch version, and if you intended to remove
LDSingleKindContext
then it should go in the major10.x
release.Logs
Not needed
SDK version
9.6.1
Language version, developer tools
Node v22.9.0
TypeScript 5.6.3
OS/platform
Any OS
Additional context
Not needed
The text was updated successfully, but these errors were encountered: