@aurelia/store-v1
Advanced tools
Comparing version 2.1.0-dev.202404150648 to 2.1.0-dev.202405060015
@@ -6,2 +6,17 @@ # Change Log | ||
<a name="2.0.0-beta.16"></a> | ||
# 2.0.0-beta.16 (2024-05-03) | ||
### Refactorings: | ||
* ***:** cleanup deco code (#1947) ([ca22bc8](https://github.com/aurelia/aurelia/commit/ca22bc8)) | ||
* **observers:** use static blocks, group related code ([ca22bc8](https://github.com/aurelia/aurelia/commit/ca22bc8)) | ||
<a name="2.0.0-beta.15"></a> | ||
# 2.0.0-beta.15 (2024-04-17) | ||
### Refactorings: | ||
* ***:** migration to TC39 decorators + metadata simplification (#1932) ([22f90ad](https://github.com/aurelia/aurelia/commit/22f90ad)) | ||
<a name="2.0.0-beta.14"></a> | ||
@@ -8,0 +23,0 @@ # 2.0.0-beta.14 (2024-04-03) |
@@ -19,3 +19,6 @@ import { Observable } from 'rxjs'; | ||
} | ||
export declare function connectTo<T, R = any>(settings?: ((store: Store<T>) => Observable<R>) | ConnectToSettings<T, R>): (target: any) => void; | ||
export declare function connectTo<T, R = any>(settings?: ((store: Store<T>) => Observable<R>) | ConnectToSettings<T, R>): <TClass extends { | ||
new (...args: any[]): unknown; | ||
readonly prototype: unknown; | ||
}>(target: any, context: ClassDecoratorContext<TClass>) => void; | ||
//# sourceMappingURL=decorator.d.ts.map |
{ | ||
"name": "@aurelia/store-v1", | ||
"version": "2.1.0-dev.202404150648", | ||
"version": "2.1.0-dev.202405060015", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -56,6 +56,6 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/kernel": "2.1.0-dev.202404150648", | ||
"@aurelia/metadata": "2.1.0-dev.202404150648", | ||
"@aurelia/platform": "2.1.0-dev.202404150648", | ||
"@aurelia/runtime-html": "2.1.0-dev.202404150648", | ||
"@aurelia/kernel": "2.1.0-dev.202405060015", | ||
"@aurelia/metadata": "2.1.0-dev.202405060015", | ||
"@aurelia/platform": "2.1.0-dev.202405060015", | ||
"@aurelia/runtime-html": "2.1.0-dev.202405060015", | ||
"rxjs": "^6.6.7" | ||
@@ -62,0 +62,0 @@ }, |
@@ -6,2 +6,3 @@ /* eslint-disable @typescript-eslint/strict-boolean-expressions */ | ||
import { Store, STORE } from './store'; | ||
import { Class } from '@aurelia/kernel'; | ||
@@ -67,3 +68,3 @@ export interface ConnectToSettings<T, R = T> { | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
return function (target: any) { | ||
return function <TClass extends Class<unknown>>(target: any, context: ClassDecoratorContext<TClass>) { | ||
const originalSetup = typeof settings === 'object' && settings.setup | ||
@@ -70,0 +71,0 @@ ? target.prototype[settings.setup] |
@@ -80,4 +80,4 @@ /* eslint-disable @typescript-eslint/strict-boolean-expressions */ | ||
private readonly initialState: T, | ||
@ILogger private readonly logger: ILogger, | ||
@IWindow private readonly _window: IStoreWindow, | ||
private readonly logger: ILogger, | ||
private readonly _window: IStoreWindow, | ||
options?: Partial<StoreOptions> | ||
@@ -84,0 +84,0 @@ ) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
283531
4542
+ Added@aurelia/expression-parser@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/kernel@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/metadata@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/platform@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/platform-browser@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/runtime@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/runtime-html@2.1.0-dev.202405060015(transitive)
+ Added@aurelia/template-compiler@2.1.0-dev.202405060015(transitive)
- Removed@aurelia/kernel@2.1.0-dev.202404150648(transitive)
- Removed@aurelia/metadata@2.1.0-dev.202404150648(transitive)
- Removed@aurelia/platform@2.1.0-dev.202404150648(transitive)
- Removed@aurelia/platform-browser@2.1.0-dev.202404150648(transitive)
- Removed@aurelia/runtime@2.1.0-dev.202404150648(transitive)
- Removed@aurelia/runtime-html@2.1.0-dev.202404150648(transitive)