这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: stop importing sRGBEncoding constant #1037

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

Merged
merged 2 commits into from
Apr 26, 2024
Merged

fix: stop importing sRGBEncoding constant #1037

merged 2 commits into from
Apr 26, 2024

Conversation

usefulthink
Copy link
Contributor

Since r162, three.js no longer exports the formerly deprecated sRGBEncoding constant. This replaces the import with the literal value to keep compatibility with older three.js versions until we release a new major version.

fixes #1036

Since r162, three.js no longer exports the formerly deprecated sRGBEncoding constant. This replaces the import with the literal value to keep compatibility with older three.js versions until we release a new major version.

fixes #1036
@kwnevarez kwnevarez merged commit 86dc909 into main Apr 26, 2024
@kwnevarez kwnevarez deleted the fix-1036-srgb branch April 26, 2024 20:30
github-actions bot pushed a commit that referenced this pull request Apr 26, 2024
* fix: stop importing sRGBEncoding constant

Since r162, three.js no longer exports the formerly deprecated sRGBEncoding constant. This replaces the import with the literal value to keep compatibility with older three.js versions until we release a new major version.

fixes #1036

* fix: typescript fixes for compat-code 86dc909
googlemaps-bot pushed a commit that referenced this pull request Apr 26, 2024
### [4.0.12](v4.0.11...v4.0.12) (2024-04-26)

### Bug Fixes

* stop importing sRGBEncoding constant ([#1037](#1037)) ([86dc909](86dc909)), closes [#1036](#1036)

### Miscellaneous Chores

* **deps-dev:** bump core-js from 3.36.1 to 3.37.0 ([#1034](#1034)) ([822a836](822a836))
* **deps-dev:** bump rollup from 4.14.2 to 4.16.1 ([#1035](#1035)) ([d6d8601](d6d8601))
* **deps-dev:** bump typescript from 5.4.4 to 5.4.5 ([#1032](#1032)) ([272b53c](272b53c))
@googlemaps-bot
Copy link
Contributor

🎉 This PR is included in version 4.0.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error after update Three dependency: export 'sRGBEncoding' (imported as 'c') was not found in 'three'
3 participants