Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.4JS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
This file records changes introduced by the 4.js fork. Upstream Three.js
history remains attributable through [UPSTREAM.md](UPSTREAM.md).

## 0.185.1-four.2 - 2026-08-19

### Fixes

- Migrated deprecated `PCFSoftShadowMap` to `PCFShadowMap` in the editor and
examples; `PCFShadowMap` now applies the same soft filtering, so saved scenes
stop emitting the WebGLShadowMap deprecation warning.
- Made the offscreen-canvas security tests tolerant of slow software
(SwiftShader) rendering, eliminating a flaky blank-canvas failure on CI.

## 0.185.1-four.1 - 2026-08-07

### Packaging
Expand Down
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ same 4.js version under both names:
```json
{
"dependencies": {
"@tnb1j/4js": "0.185.1-four.1",
"three": "npm:@tnb1j/4js@0.185.1-four.1"
"@tnb1j/4js": "0.185.1-four.2",
"three": "npm:@tnb1j/4js@0.185.1-four.2"
}
}
```
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ map. The same URLs can be used with jsDelivr by replacing
<script type="importmap">
{
"imports": {
"@tnb1j/4js": "https://unpkg.com/@tnb1j/4js@0.185.1-four.1/build/4.module.js",
"@tnb1j/4js/addons/": "https://unpkg.com/@tnb1j/4js@0.185.1-four.1/examples/jsm/"
"@tnb1j/4js": "https://unpkg.com/@tnb1j/4js@0.185.1-four.2/build/4.module.js",
"@tnb1j/4js/addons/": "https://unpkg.com/@tnb1j/4js@0.185.1-four.2/examples/jsm/"
}
}
</script>
Expand All @@ -82,7 +82,7 @@ map. The same URLs can be used with jsDelivr by replacing
The direct core-module URL is:

```text
https://unpkg.com/@tnb1j/4js@0.185.1-four.1/build/4.module.js
https://unpkg.com/@tnb1j/4js@0.185.1-four.2/build/4.module.js
```

## Migration
Expand Down
14 changes: 7 additions & 7 deletions docs/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ CORRECT - modern pattern (always use latest version):
<script type="importmap">
{
"imports": {
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/examples/jsm/"
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/examples/jsm/"
}
}
</script>
Expand Down Expand Up @@ -100,8 +100,8 @@ When using TSL, use node-based materials:
<script type="importmap">
{
"imports": {
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/examples/jsm/"
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/examples/jsm/"
}
}
</script>
Expand Down Expand Up @@ -175,9 +175,9 @@ renderer.setAnimationLoop( animate );
<script type="importmap">
{
"imports": {
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/build/4.webgpu.js",
"@tnb1j/4js/tsl": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/build/4.tsl.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/examples/jsm/"
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/build/4.webgpu.js",
"@tnb1j/4js/tsl": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/build/4.tsl.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/examples/jsm/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions docs/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ CORRECT - modern pattern (always use latest version):
<script type="importmap">
{
"imports": {
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.1/examples/jsm/"
"@tnb1j/4js": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/build/4.module.js",
"@tnb1j/4js/addons/": "https://cdn.jsdelivr.net/npm/@tnb1j/4js@0.185.1-four.2/examples/jsm/"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tnb1j/4js",
"version": "0.185.1-four.1",
"version": "0.185.1-four.2",
"description": "4.js is an enhanced JavaScript 3D library based on Three.js r185",
"homepage": "https://github.com/tnb1j/4.js#readme",
"bugs": {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/manual-security.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ async function testCodeSiteModuleRewriting( browser, baseURL ) {

}, baseURL );

assert.match( rewritten, /@tnb1j\/4js@0\.185\.1-four\.1\/\+esm/ );
assert.match( rewritten, /@tnb1j\/4js@0\.185\.1-four\.1\/examples\/jsm\/controls\/OrbitControls\.js\/\+esm/ );
assert.match( rewritten, /@tnb1j\/4js@0\.185\.1-four\.2\/\+esm/ );
assert.match( rewritten, /@tnb1j\/4js@0\.185\.1-four\.2\/examples\/jsm\/controls\/OrbitControls\.js\/\+esm/ );
assert.doesNotMatch( rewritten, /npm\/three@/ );

} finally {
Expand Down