@aurelia/runtime
Advanced tools
Comparing version 2.1.0-dev.202401310648 to 2.1.0-dev.202402270447
@@ -1,2 +0,2 @@ | ||
import { IContainer, IPlatform } from '@aurelia/kernel'; | ||
import { IContainer } from '@aurelia/kernel'; | ||
import { type AccessorType, type IObserver, type ISubscriberCollection, type IObservable, type ISubscriber } from '../observation'; | ||
@@ -36,6 +36,6 @@ import type { IIndexable } from '@aurelia/kernel'; | ||
export declare class DirtyChecker { | ||
private readonly p; | ||
static register(c: IContainer): void; | ||
private readonly tracked; | ||
constructor(p: IPlatform); | ||
private readonly p; | ||
constructor(); | ||
createProperty(obj: object, key: PropertyKey): DirtyCheckProperty; | ||
@@ -42,0 +42,0 @@ addProperty(property: DirtyCheckProperty): void; |
import { ComputedGetterFn } from './computed-observer'; | ||
import { IDirtyChecker } from './dirty-checker'; | ||
import { PropertyAccessor } from './property-accessor'; | ||
@@ -29,3 +28,2 @@ import type { Collection, IAccessor, ICollectionObserver, IObserver, AccessorOrObserver, CollectionObserver } from '../observation'; | ||
export declare class ObserverLocator { | ||
constructor(dirtyChecker: IDirtyChecker, nodeObserverLocator: INodeObserverLocator); | ||
addAdapter(adapter: IObjectObservationAdapter): void; | ||
@@ -32,0 +30,0 @@ getObserver(obj: unknown, key: PropertyKey): IObserver; |
{ | ||
"name": "@aurelia/runtime", | ||
"version": "2.1.0-dev.202401310648", | ||
"version": "2.1.0-dev.202402270447", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -56,5 +56,5 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/kernel": "2.1.0-dev.202401310648", | ||
"@aurelia/metadata": "2.1.0-dev.202401310648", | ||
"@aurelia/platform": "2.1.0-dev.202401310648" | ||
"@aurelia/kernel": "2.1.0-dev.202402270447", | ||
"@aurelia/metadata": "2.1.0-dev.202402270447", | ||
"@aurelia/platform": "2.1.0-dev.202402270447" | ||
}, | ||
@@ -61,0 +61,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { IContainer, IPlatform, Registration } from '@aurelia/kernel'; | ||
import { IContainer, IPlatform, Registration, resolve } from '@aurelia/kernel'; | ||
import { type AccessorType, type IObserver, type ISubscriberCollection, type IObservable, type ISubscriber, atNone } from '../observation'; | ||
@@ -51,6 +51,2 @@ import { subscriberCollection } from './subscriber-collection'; | ||
export class DirtyChecker { | ||
/** | ||
* @internal | ||
*/ | ||
public static inject = [IPlatform]; | ||
public static register(c: IContainer) { | ||
@@ -69,4 +65,4 @@ c.register( | ||
private readonly p = resolve(IPlatform); | ||
public constructor( | ||
private readonly p: IPlatform, | ||
) { | ||
@@ -73,0 +69,0 @@ subscriberCollection(DirtyCheckProperty); |
@@ -1,2 +0,2 @@ | ||
import { Primitive, isArrayIndex, ILogger } from '@aurelia/kernel'; | ||
import { Primitive, isArrayIndex, ILogger, resolve } from '@aurelia/kernel'; | ||
import { getArrayObserver } from './array-observer'; | ||
@@ -70,15 +70,6 @@ import { ComputedGetterFn, ComputedObserver } from './computed-observer'; | ||
export class ObserverLocator { | ||
/** @internal */ protected static readonly inject = [IDirtyChecker, INodeObserverLocator]; | ||
/** @internal */ private readonly _adapters: IObjectObservationAdapter[] = []; | ||
/** @internal */ private readonly _dirtyChecker: IDirtyChecker; | ||
/** @internal */ private readonly _nodeObserverLocator: INodeObserverLocator; | ||
/** @internal */ private readonly _dirtyChecker = resolve(IDirtyChecker); | ||
/** @internal */ private readonly _nodeObserverLocator = resolve(INodeObserverLocator); | ||
public constructor( | ||
dirtyChecker: IDirtyChecker, | ||
nodeObserverLocator: INodeObserverLocator, | ||
) { | ||
this._dirtyChecker = dirtyChecker; | ||
this._nodeObserverLocator = nodeObserverLocator; | ||
} | ||
public addAdapter(adapter: IObjectObservationAdapter): void { | ||
@@ -181,2 +172,3 @@ this._adapters.push(adapter); | ||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing | ||
return obs == null | ||
@@ -183,0 +175,0 @@ ? pd.configurable |
@@ -108,3 +108,3 @@ import { ErrorNames, createMappedError } from '../errors'; | ||
} | ||
return new Scope(null, bc as IBindingContext, oc == null ? new OverrideContext() : oc, isBoundary ?? false); | ||
return new Scope(null, bc as IBindingContext, oc ?? new OverrideContext(), isBoundary ?? false); | ||
} | ||
@@ -111,0 +111,0 @@ |
@@ -22,9 +22,3 @@ import { createInterface, createLookup } from '../utilities'; | ||
public addSignalListener(name: string, listener: ISubscriber): void { | ||
const signals = this.signals; | ||
const listeners = signals[name]; | ||
if (listeners === undefined) { | ||
signals[name] = new Set([listener]); | ||
} else { | ||
listeners.add(listener); | ||
} | ||
(this.signals[name] ??= new Set()).add(listener); | ||
} | ||
@@ -31,0 +25,0 @@ |
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2101417
39726
+ Added@aurelia/kernel@2.1.0-dev.202402270447(transitive)
+ Added@aurelia/metadata@2.1.0-dev.202402270447(transitive)
+ Added@aurelia/platform@2.1.0-dev.202402270447(transitive)
- Removed@aurelia/kernel@2.1.0-dev.202401310648(transitive)
- Removed@aurelia/metadata@2.1.0-dev.202401310648(transitive)
- Removed@aurelia/platform@2.1.0-dev.202401310648(transitive)