Skip to content

Commit 5598b3d

Browse files
Brian M Huntclaude
authored andcommitted
Add changesets for ESM extensions fix and strictEquality
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4b391ea commit 5598b3d

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.changeset/esm-extensions.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
"@tko/bind": patch
3+
"@tko/binding.component": patch
4+
"@tko/binding.core": patch
5+
"@tko/binding.foreach": patch
6+
"@tko/binding.if": patch
7+
"@tko/binding.template": patch
8+
"@tko/builder": patch
9+
"@tko/computed": patch
10+
"@tko/filter.punches": patch
11+
"@tko/lifecycle": patch
12+
"@tko/observable": patch
13+
"@tko/provider": patch
14+
"@tko/provider.attr": patch
15+
"@tko/provider.bindingstring": patch
16+
"@tko/provider.component": patch
17+
"@tko/provider.databind": patch
18+
"@tko/provider.multi": patch
19+
"@tko/provider.mustache": patch
20+
"@tko/provider.native": patch
21+
"@tko/provider.virtual": patch
22+
"@tko/utils": patch
23+
"@tko/utils.component": patch
24+
"@tko/utils.functionrewrite": patch
25+
"@tko/utils.jsx": patch
26+
"@tko/utils.parser": patch
27+
"@tko/build.knockout": patch
28+
"@tko/build.reference": patch
29+
---
30+
31+
Add .js extensions to ESM dist imports for Node ESM compatibility
32+
33+
Relative imports in ESM dist files now include `.js` extensions, fixing `ERR_MODULE_NOT_FOUND` in Node's strict ESM resolver and tools like vitest that use it.

.changeset/strict-equality.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@tko/utils": patch
3+
"@tko/utils.parser": patch
4+
"@tko/build.reference": patch
5+
---
6+
7+
Fix `==` and `!=` parser error in binding expressions (#290)
8+
9+
The `==` and `!=` operators in the reference build threw "unexpected nodes remain in shunting yard output stack" because the operator functions were missing `.precedence` metadata. Now all equality operator functions have correct precedence.
10+
11+
Also adds `ko.options.strictEquality` — a configuration setter that controls whether `==`/`!=` use strict (`===`/`!==`) comparison in binding expressions. `@tko/build.reference` enables this by default.

0 commit comments

Comments
 (0)