Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Bump three and @types/three #5182

Merged
merged 8 commits into from Jan 23, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 20, 2023

Bumps three and @types/three. These dependencies needed to be updated together.
Updates three from 0.140.2 to 0.148.0

Commits

Updates @types/three from 0.140.0 to 0.148.0

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [three](https://github.com/mrdoob/three.js) and [@types/three](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/three). These dependencies needed to be updated together.

Updates `three` from 0.140.2 to 0.148.0
- [Release notes](https://github.com/mrdoob/three.js/releases)
- [Commits](https://github.com/mrdoob/three.js/commits)

Updates `@types/three` from 0.140.0 to 0.148.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/three)

---
updated-dependencies:
- dependency-name: three
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/three"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
jtbandes
jtbandes previously approved these changes Jan 20, 2023
@jtbandes jtbandes dismissed their stale review January 20, 2023 04:12

three was not actually bumped

Comment on lines -40 to -72
_getShaderCacheForMaterial(material) {
const cache = this.materialCache;
+ let set = cache.get(material);

- if (cache.has(material) === false) {
- cache.set(material, new Set());
+ if (set == undefined) {
+ set = new Set();
+ cache.set(material, set);
}

- return cache.get(material);
+ return set;
}

- _getShaderStage(code) {
+ _getShaderStage(key, code) {
const cache = this.shaderCache;
+ let stage = cache.get(key);

- if (cache.has(code) === false) {
- const stage = new WebGLShaderStage(code);
- cache.set(code, stage);
+ if (stage == undefined) {
+ stage = new WebGLShaderStage(code);
+ cache.set(key, stage);
}

- return cache.get(code);
+ return stage;
}

}
Copy link
Member

@jtbandes jtbandes Jan 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of this patch has now been upstreamed in mrdoob/three.js#24457. The rest is being tracked as mrdoob/three.js#24451
See also: #4021

@jtbandes jtbandes merged commit 5ce667b into main Jan 23, 2023
@jtbandes jtbandes deleted the dependabot/npm_and_yarn/three-and-types/three-0.148.0 branch January 23, 2023 22:38
jtbandes added a commit that referenced this pull request Jan 24, 2023
**User-Facing Changes**
None

**Description**
Attempt to address build failure on #5182. May be related to yarn's
built-in TS patch which was supposedly updated in 3.3.1
(yarnpkg/berry#5146 /
yarnpkg/berry#5125).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant