Skip to content

fork release 8: r187 declarations

Latest

Choose a tag to compare

@johnfewell johnfewell released this 02 Nov 13:14

Fork release 8 of @takram/three-atmosphere and @takram/three-geospatial. It is release 7 with declarations that type-check against three.js r187, plus the release marker. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves. These are the archives three-clouds-webgpu v0.1.0-alpha.7 vendors and qualifies (its public-candidate-record.json lists both SHA-256s below).

Base: fork/release-7 @ ed822a9d (tag fork-release-7).

Commit on top of release 7 (git log fork/release-7..fork/r187-types):

  • cecb98ca fix: emit r187 compatible fork declarations.

Why. r187 types uniform nodes with an explicit shader type (UniformNode<'vec3', Vector3>), and its light-node constructor contract changed the lifecycle signatures. Release 7's declarations fail to type-check against @types/three 0.187.0. Release 8 normalises the legacy UniformNode value generics, keeps the uint cascade indices, and declares AtmosphereLightNode.updateBefore()/update() as returning undefined and setup() as returning AnalyticLightNode['setup']'s type. Both markers move to release 8:

  • @takram/three-atmosphere/webgpu exports forkBuild = { release: 8, r186Kernels: true }.
  • @takram/three-geospatial/webgpu exports forkBuild = { release: 8, raySpheresIntersectionsLanes: 4, r186Kernels: true }.

Nothing else changes at run time. The built JavaScript differs from release 7 only in the marker's release number.

Package Version SHA-256
@takram/three-atmosphere 0.19.1+fork.8 829ec23b8754700f93e9764b8473924ac4995c634dccd6e96401f5b944eb34e1
@takram/three-geospatial 0.9.1+fork.8 10127715aeb9ac35e7d7e8bf443817d08e9bae845851810d5471628c3b91be25

Atmosphere's build/webgpu.js SHA-256 is 90e7f7a076c038d2ea498f880f7adcc064c59e7ab0c1418b147e8d6d0c5877d9; release 7's was 4c0ef92f….

Evidence:

  • Same bytes as the clouds release: both archives are byte-identical to vendor/ in johnfewell/three-clouds-webgpu at the v0.1.0-alpha.7 tag commit 0fefeeb1, and their SHA-256s match that release's public-candidate-record.json.
  • Source: at cecb98ca, packages/atmosphere/src/webgpu/AtmosphereLightNode.ts, both forkBuild.ts files and both package versions match the archives.
  • Tarball diff against release 7: only declarations (types/**), AtmosphereLightNode.ts's signatures, the marker, and the version fields. @takram/three-geospatial's build/index.js, including isFloatLinearSupported() (the LUT precision choice), is unchanged.
  • Commit message (cecb98ca): reports both builds, the declaration transformer tests, the tools typecheck, ESLint and the consuming library typechecks.
  • Clouds release qualification: consumer recipes and native WebGPU scenarios pass on stock three 0.187.0 with these archives.
  • Consumer (Slop Toronto, stock three 0.187.0, Apple M4 / Metal): a fresh npm ci resolves one copy of each package. The city reaches ready on WebGPU and on the WebGL2 backend, desktop and phone, and its renders match release 7 on the previous three.js.

Releases 1 to 7 stay published.