File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ All notable changes to [@spearwolf/shadow-objects](https://github.com/spearwolf/
55The format is loosely based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.1.0/ ) ,
66and 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?} `
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments