Skip to content

Commit fda8158

Browse files
committed
Bump version to 0.26.1 and update CHANGELOG; change unsubscribe priority in Kernel
1 parent 20d3933 commit fda8158

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

packages/shadow-objects/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to [@spearwolf/shadow-objects](https://github.com/spearwolf/
55
The format is loosely based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.26.1] - 2026-01-08
9+
10+
- automatic clearing of the context value is now performed by default _after_ the user-defined `onDestroy()` hooks
11+
812
## [0.26.0] - 2026-01-08
913

1014
- `provideContext()` and `provideGlobalContext()` expect as third argument now an option object `{compare?, clearOnDestroy?}`

packages/shadow-objects/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@spearwolf/shadow-objects",
33
"description": "a reactive entity-component framework that feels at home in the shadows",
4-
"version": "0.26.0",
4+
"version": "0.26.1",
55
"author": {
66
"name": "Wolfger Schramm",
77
"email": "wolfger@spearwolf.de",

packages/shadow-objects/src/in-the-dark/Kernel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export class Kernel {
403403
}
404404

405405
if (ctxProvider != null && (opts?.clearOnDestroy ?? true)) {
406-
unsubscribePrimary.add(() => {
406+
unsubscribeSecondary.add(() => {
407407
ctxProvider.set(undefined);
408408
});
409409
}
@@ -444,7 +444,7 @@ export class Kernel {
444444
}
445445

446446
if (ctxProvider != null && (opts?.clearOnDestroy ?? true)) {
447-
unsubscribePrimary.add(() => {
447+
unsubscribeSecondary.add(() => {
448448
ctxProvider.set(undefined);
449449
});
450450
}

0 commit comments

Comments
 (0)