Repository navigation
fork release 2: three r185 struct shape on 0.19.1 / 0.9.1
Patched builds of @takram/three-geospatial 0.9.1 and @takram/three-atmosphere 0.19.1 that work with three r185, which changed what struct() returns. These are drop-in replacements for the npm 0.19.1 / 0.9.1 releases. This is an unofficial fork release. Upstream is takram-design-engineering/three-geospatial.
This release supersedes fork-release-1, which was built from upstream main.
Source
- Base:
b1a4d6282db3ad5079c807f4039ae1db96c06765("chore(release): publish", 2026-05-06), the upstream commit that published 0.19.1 / 0.9.1 to npm - Patch commits on
fork/release-2(cherry-picked from PR takram-design-engineering#118,fix/three-r185-struct-layout, with no conflicts):22d75078558c2d6d2feb7c5241b5e10497cf9f16Support the struct() return shape of three r185e7f0418e524264fefd8322831a2a551dc103a3d1Detect the r185 struct proxy without type assertions, drop the testsdc8d19150b2fd36f9f4af58b7f1c981afc90852afork release 2: version metadata
- Net change against the base:
packages/atmosphere/src/webgpu/AtmosphereContextBase.tsandpackages/core/src/webgpu/FnLayout.ts(+27/-5), plus the two version fields.
Assets
| File | Version | Size | SHA-256 |
|---|---|---|---|
takram-three-geospatial-0.9.1+fork.2.tgz |
0.9.1+fork.2 | 200853 B | ee46293e221b0ef2f62ebda957802f64dc9b668d8a1e6f6943b66c5ba11568f3 |
takram-three-atmosphere-0.19.1+fork.2.tgz |
0.19.1+fork.2 | 24446117 B | c7dce0992f8b1ddeaa51e1a1db23d271049fcd0db6f6870657eea2e551726b76 |
Built with node 22.23.3 (.nvmrc lts/jod) and pnpm 9.15.9 from the base commit's own lockfile: pnpm install --frozen-lockfile, pnpm exec nx run core:build, pnpm exec nx run atmosphere:build, then npm pack in dist/packages/<name>.
Comparison with the npm tarballs
Each tarball has the same file list as the npm release it replaces (atmosphere 191 files, geospatial 176). Every file is byte-identical to npm's except these:
package.json: the version line, plus a trailing newline- the patched source file
build/webgpu.js,build/webgpu.cjsand their source maps
build/shared.*, build/index.*, all of types/ and all of assets/ match npm's byte for byte.
Versions
The package names are unchanged. A version with build metadata (+fork.2) still satisfies ^0.19.1 / ^0.9.1 and sorts the same as the release it is based on. pnpm 11.8 accepts it, though its install summary prints the version without the metadata. Use only one copy of atmosphere per app: instanceof AtmosphereContext breaks if two copies are installed.
Use
Override both names, never just one. In pnpm 11 the overrides go in pnpm-workspace.yaml. Since pnpm 10.26, blockExoticSubdeps is on by default, so geospatial (a dependency of atmosphere) cannot come from a URL. Keep it as a local tarball (file:) instead, and point atmosphere at its URL:
overrides:
'@takram/three-atmosphere': 'https://github.com/johnfewell/three-geospatial/releases/download/fork-release-2/takram-three-atmosphere-0.19.1%2Bfork.2.tgz'
'@takram/three-geospatial': 'file:./vendor/takram-three-geospatial-0.9.1+fork.2.tgz'With an empty pnpm cache, the lockfile records an sha512 integrity for the URL tarball: sha512-Uegw58xm…ydOpkA==, which matches the packed asset. A lockfile entry without integrity came from a pnpm cache primed by an earlier failed install, so check that the entry carries one. The alternatives are to set blockExoticSubdeps: false and point both names at URLs, or to vendor both tarballs.
Consumer evidence (CPU only, stock three 0.185.1 with no patch, node 24.16.0, pnpm 11.8.0)
- With overrides pointing at these tarballs,
pnpm installexits 0 with no peer warning.pnpm peers checkreports "No peer dependency issues found", including for a probe package that declares peers^0.19.1/^0.9.1.vite buildexits 0.import('@takram/three-atmosphere/webgpu')succeeds in node (29 exports, geospatial 69).FnLayoutwith a struct type works, and the built bundle runs in node and prints29 69. - With option 2 from the release URL (atmosphere by URL, geospatial from the downloaded asset), the same checks pass. The results are in
READY-2.md. - Negative control, the npm 0.19.1 / 0.9.1 packages without overrides:
vite buildstill exits 0, but importing fails withTypeError: Cannot read properties of undefined (reading 'name').FnLayoutwith a struct type throwsUnsupported layout type: [object Function], and the built bundle exits 1. - Peer-check control: a probe package that wants
^0.20.0makespnpm peers checkexit 1.