@aurelia/kernel
Advanced tools
Comparing version 2.0.1-dev.202306180925 to 2.0.1-dev.202307240932
@@ -6,2 +6,19 @@ # Change Log | ||
<a name="2.0.0-beta.8"></a> | ||
# 2.0.0-beta.8 (2023-07-24) | ||
### Features: | ||
* **template:** access global (#1790) ([2486b58](https://github.com/aurelia/aurelia/commit/2486b58)) | ||
### Bug Fixes: | ||
* **au-slot:** correctly prepare resources for slotted view (#1802) ([bf1ca4c](https://github.com/aurelia/aurelia/commit/bf1ca4c)) | ||
### Refactorings: | ||
* **ref:** deprecate view-model.ref and introduce component.ref (#1803) ([97e8dad](https://github.com/aurelia/aurelia/commit/97e8dad)) | ||
<a name="2.0.0-beta.7"></a> | ||
@@ -8,0 +25,0 @@ # 2.0.0-beta.7 (2023-06-16) |
@@ -366,10 +366,2 @@ import { Constructable, IDisposable } from './interfaces'; | ||
}; | ||
export declare class Resolver implements IResolver, IRegistration { | ||
constructor(key: Key, strategy: ResolverStrategy, state: any); | ||
get $isResolver(): true; | ||
private resolving; | ||
register(container: IContainer, key?: Key): IResolver; | ||
resolve(handler: IContainer, requestor: IContainer): any; | ||
getFactory(container: IContainer): IFactory | null; | ||
} | ||
/** | ||
@@ -376,0 +368,0 @@ * An implementation of IRegistry that delegates registration to a |
{ | ||
"name": "@aurelia/kernel", | ||
"version": "2.0.1-dev.202306180925", | ||
"version": "2.0.1-dev.202307240932", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -52,7 +52,7 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/metadata": "2.0.1-dev.202306180925", | ||
"@aurelia/platform": "2.0.1-dev.202306180925" | ||
"@aurelia/metadata": "2.0.1-dev.202307240932", | ||
"@aurelia/platform": "2.0.1-dev.202307240932" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.0.2" | ||
"typescript": "5.1.6" | ||
}, | ||
@@ -59,0 +59,0 @@ "engines": { |
@@ -8,3 +8,3 @@ /* eslint-disable @typescript-eslint/no-this-alias */ | ||
import { type IResourceKind, type ResourceDefinition, type ResourceType, getAllResources, hasResources } from './resource'; | ||
import { createObject, getOwnMetadata, isFunction, isString } from './utilities'; | ||
import { getOwnMetadata, isFunction, isString } from './utilities'; | ||
import { | ||
@@ -87,3 +87,3 @@ IContainer, | ||
this.res = createObject(); | ||
this.res = {}; | ||
} else { | ||
@@ -94,11 +94,11 @@ this.root = parent.root; | ||
this._factories = parent._factories; | ||
this.res = {}; | ||
if (config.inheritParentResources) { | ||
this.res = Object.assign( | ||
createObject(), | ||
parent.res, | ||
this.root.res | ||
); | ||
} else { | ||
this.res = createObject(); | ||
// todo: when the simplify resource system work is commenced | ||
// this resource inheritance can just be a Object.create() call | ||
// with parent resources as the prototype of the child resources | ||
for (const key in parent.res) { | ||
this.registerResolver(key, parent.res[key]!); | ||
} | ||
} | ||
@@ -283,3 +283,3 @@ } | ||
public has<K extends Key>(key: K, searchAncestors: boolean = false): boolean { | ||
return this._resolvers.has(key) | ||
return this._resolvers.has(key) || isResourceKey(key) && key in this.res | ||
? true | ||
@@ -286,0 +286,0 @@ : searchAncestors && this.parent != null |
@@ -763,2 +763,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
/** @internal */ | ||
export class Resolver implements IResolver, IRegistration { | ||
@@ -765,0 +766,0 @@ /** @internal */ |
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
747120
14819
+ Added@aurelia/metadata@2.0.1-dev.202307240932(transitive)
+ Added@aurelia/platform@2.0.1-dev.202307240932(transitive)
- Removed@aurelia/metadata@2.0.1-dev.202306180925(transitive)
- Removed@aurelia/platform@2.0.1-dev.202306180925(transitive)