Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aurelia/kernel

Package Overview
Dependencies
Maintainers
1
Versions
1117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aurelia/kernel - npm Package Compare versions

Comparing version 2.0.0-beta.13 to 2.0.0-beta.14

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="2.0.0-beta.14"></a>
# 2.0.0-beta.14 (2024-04-03)
### Features:
* **i18n:** support multiple versions of i18next (#1927) ([0789ee5](https://github.com/aurelia/aurelia/commit/0789ee5))
### Refactorings:
* **attr:** treat empty string as no binding (#1930) ([8fc5275](https://github.com/aurelia/aurelia/commit/8fc5275))
<a name="2.0.0-beta.13"></a>

@@ -8,0 +20,0 @@ # 2.0.0-beta.13 (2024-03-15)

5

dist/types/di.d.ts
import { Constructable, IDisposable } from './interfaces';
import { ResourceType } from './resource';
import type { IAllResolver, IFactoryResolver, ILazyResolver, INewInstanceResolver, IOptionalResolver, IResolvedFactory, IResolvedLazy } from './di.resolvers';
import type { IAllResolver, ICallableResolver, IFactoryResolver, ILazyResolver, INewInstanceResolver, IOptionalResolver, IResolvedFactory, IResolvedLazy } from './di.resolvers';
export type ResolveCallback<T = any> = (handler: IContainer, requestor: IContainer, resolver: IResolver<T>) => T;

@@ -28,3 +28,3 @@ export type InterfaceSymbol<K = any> = (target: Injectable | AbstractInjectable, property: string | symbol | undefined, index?: number) => void;

has<K extends Key>(key: K | Key, searchAncestors: boolean): boolean;
get<K extends Key>(key: IAllResolver<K>): readonly Resolved<K>[];
get<K extends Key>(key: IAllResolver<K>): Resolved<K>[];
get<K extends Key>(key: INewInstanceResolver<K>): Resolved<K>;

@@ -34,2 +34,3 @@ get<K extends Key>(key: ILazyResolver<K>): IResolvedLazy<K>;

get<K extends Key>(key: IFactoryResolver<K>): IResolvedFactory<K>;
get<K extends Key>(key: ICallableResolver<K>): Resolved<K>;
get<K extends Key>(key: IResolver<K>): Resolved<K>;

@@ -36,0 +37,0 @@ get<K extends Key>(key: K): Resolved<K>;

4

dist/types/eventaggregator.d.ts

@@ -15,3 +15,3 @@ import { Constructable, IDisposable } from './interfaces';

*/
publish<T, C extends string>(channel: C, message: T): void;
publish<C extends string>(channel: C, message?: unknown): void;
/**

@@ -29,3 +29,3 @@ * Publishes a message.

*/
subscribe<T, C extends string>(channel: C, callback: (message: T, channel: C) => void): IDisposable;
subscribe<T, C extends string = string>(channel: C, callback: (message: T, channel: C) => void): IDisposable;
/**

@@ -32,0 +32,0 @@ * Subscribes to a message type.

export interface IDisposable {
dispose(): void;
}
export type Constructable<T = {}> = {
export type Constructable<T = object> = {
new (...args: any[]): T;

@@ -6,0 +6,0 @@ };

{
"name": "@aurelia/kernel",
"version": "2.0.0-beta.13",
"version": "2.0.0-beta.14",
"main": "dist/cjs/index.cjs",

@@ -24,3 +24,4 @@ "module": "dist/esm/index.mjs",

"type": "git",
"url": "https://github.com/aurelia/aurelia"
"url": "https://github.com/aurelia/aurelia.git",
"directory": "packages/kernel"
},

@@ -56,7 +57,7 @@ "bugs": {

"dependencies": {
"@aurelia/metadata": "2.0.0-beta.13",
"@aurelia/platform": "2.0.0-beta.13"
"@aurelia/metadata": "2.0.0-beta.14",
"@aurelia/platform": "2.0.0-beta.14"
},
"devDependencies": {
"typescript": "5.2.2"
"typescript": "5.4.2"
},

@@ -63,0 +64,0 @@ "engines": {

@@ -16,3 +16,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

import { ErrorNames, createMappedError } from './errors';
import type { IAllResolver, IFactoryResolver, ILazyResolver, INewInstanceResolver, IOptionalResolver, IResolvedFactory, IResolvedLazy } from './di.resolvers';
import type { IAllResolver, ICallableResolver, IFactoryResolver, ILazyResolver, INewInstanceResolver, IOptionalResolver, IResolvedFactory, IResolvedLazy } from './di.resolvers';

@@ -52,3 +52,3 @@ export type ResolveCallback<T = any> = (handler: IContainer, requestor: IContainer, resolver: IResolver<T>) => T;

has<K extends Key>(key: K | Key, searchAncestors: boolean): boolean;
get<K extends Key>(key: IAllResolver<K>): readonly Resolved<K>[];
get<K extends Key>(key: IAllResolver<K>): Resolved<K>[];
get<K extends Key>(key: INewInstanceResolver<K>): Resolved<K>;

@@ -58,2 +58,3 @@ get<K extends Key>(key: ILazyResolver<K>): IResolvedLazy<K>;

get<K extends Key>(key: IFactoryResolver<K>): IResolvedFactory<K>;
get<K extends Key>(key: ICallableResolver<K>): Resolved<K>;
get<K extends Key>(key: IResolver<K>): Resolved<K>;

@@ -60,0 +61,0 @@ get<K extends Key>(key: K): Resolved<K>;

@@ -40,6 +40,3 @@ import { createInterface } from './di';

*/
public publish<T, C extends string>(
channel: C,
message: T,
): void;
public publish<C extends string>(channel: C, message?: unknown): void;
/**

@@ -50,5 +47,3 @@ * Publishes a message.

*/
public publish<T extends Constructable>(
instance: InstanceType<T>,
): void;
public publish<T extends Constructable>(instance: InstanceType<T>): void;
public publish<T extends Constructable | string>(

@@ -89,3 +84,3 @@ channelOrInstance: T extends Constructable ? InstanceType<T> : T,

*/
public subscribe<T, C extends string>(
public subscribe<T, C extends string = string>(
channel: C,

@@ -92,0 +87,0 @@ callback: (message: T, channel: C) => void,

@@ -5,3 +5,3 @@ export interface IDisposable {

export type Constructable<T = {}> = {
export type Constructable<T = object> = {
// eslint-disable-next-line @typescript-eslint/prefer-function-type, @typescript-eslint/no-explicit-any

@@ -8,0 +8,0 @@ new(...args: any[]): T;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc