Comparing version 2.1.0-dev.202402292237 to 2.1.0-dev.202404120945
@@ -6,2 +6,57 @@ # 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)) | ||
### Bug Fixes: | ||
* **form:** prevent actionless submission (#1931) ([1fc74d4](https://github.com/aurelia/aurelia/commit/1fc74d4)) | ||
### 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> | ||
# 2.0.0-beta.13 (2024-03-15) | ||
### Features: | ||
* **template-controller:** ability to have a container per factory (#1924) ([6727b56](https://github.com/aurelia/aurelia/commit/6727b56)) | ||
* **convention:** add import as support (#1920) ([7a15551](https://github.com/aurelia/aurelia/commit/7a15551)) | ||
* **di:** api to register resources with alias key ([7a15551](https://github.com/aurelia/aurelia/commit/7a15551)) | ||
### Bug Fixes: | ||
* **router-lite:** dont register config ([f71e9e7](https://github.com/aurelia/aurelia/commit/f71e9e7)) | ||
* ***:** element get own metadata call ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **di:** cache factory on singleton resolution ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
### Refactorings: | ||
* **event:** no longer call prevent default by default (#1926) ([f71e9e7](https://github.com/aurelia/aurelia/commit/f71e9e7)) | ||
* **runtime:** move ctor reg into controller ([7a15551](https://github.com/aurelia/aurelia/commit/7a15551)) | ||
* **resource:** cleanup registration, APIs (#1918) ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* ***:** cleanup util fn ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **resources:** move find to corresponding resource kind ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **di:** add registrable, remove unecessary infra for attr pattern ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **resources:** use registrable ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **di:** dont search for resources when register ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **resource:** remove resource protocol, simplify resource metadata ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **resources:** add get for vc & bb resource kinds ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
* **resource:** binding command resolution ([dc22fb7](https://github.com/aurelia/aurelia/commit/dc22fb7)) | ||
<a name="2.0.0-beta.12"></a> | ||
# 2.0.0-beta.12 (2024-03-02) | ||
### Features: | ||
* **enhance:** call app tasks with `.enhance` API (#1916) ([4d522b2](https://github.com/aurelia/aurelia/commit/4d522b2)) | ||
<a name="2.0.0-beta.11"></a> | ||
@@ -8,0 +63,0 @@ # 2.0.0-beta.11 (2024-02-13) |
import { IContainer } from '@aurelia/kernel'; | ||
import { Aurelia as $Aurelia, IPlatform, IAppRoot, CustomElementType, IHydratedParentController, ICustomElementViewModel } from '@aurelia/runtime-html'; | ||
import { Aurelia as $Aurelia, IPlatform, CustomElementType, ICustomElementViewModel } from '@aurelia/runtime-html'; | ||
import { BrowserPlatform } from '@aurelia/platform-browser'; | ||
import type { ISinglePageApp, IEnhancementConfig } from '@aurelia/runtime-html'; | ||
import type { ISinglePageAppConfig, IEnhancementConfig } from '@aurelia/runtime-html'; | ||
export declare const PLATFORM: BrowserPlatform<typeof globalThis>; | ||
@@ -9,15 +9,13 @@ export { IPlatform }; | ||
constructor(container?: IContainer); | ||
static start(root: IAppRoot | undefined): void | Promise<void>; | ||
static app(config: ISinglePageApp | CustomElementType): Omit<Aurelia, 'register' | 'app' | 'enhance'>; | ||
static enhance<T extends ICustomElementViewModel>(config: IEnhancementConfig<T>, parentController?: IHydratedParentController): ReturnType<$Aurelia['enhance']>; | ||
static app(config: ISinglePageAppConfig<object> | CustomElementType): Omit<Aurelia, 'register' | 'app' | 'enhance'>; | ||
static enhance<T extends ICustomElementViewModel>(config: IEnhancementConfig<T>): ReturnType<$Aurelia['enhance']>; | ||
static register(...params: readonly unknown[]): Aurelia; | ||
app(config: ISinglePageApp | CustomElementType): Omit<this, 'register' | 'app' | 'enhance'>; | ||
app(config: ISinglePageAppConfig<object> | CustomElementType): Omit<this, 'register' | 'app' | 'enhance'>; | ||
} | ||
export default Aurelia; | ||
export { type IFetchInterceptor, IFetchFn, json, HttpClientConfiguration, HttpClient, IHttpClient, } from '@aurelia/fetch-client'; | ||
export { Metadata, } from '@aurelia/metadata'; | ||
export { type ITask, Platform, type QueueTaskOptions, Task, TaskAbortError, TaskQueue, type TaskStatus } from '@aurelia/platform'; | ||
export { all, DI, IContainer, inject, resolve, type IRegistration, type IRegistry, type IResolver, IServiceLocator, type Key, lazy, optional, Registration, singleton, transient, InstanceProvider, type Resolved, type Class, type Constructable, type ConstructableClass, type IDisposable, type IIndexable, type ColorOptions, ILogger, ConsoleSink, LoggerConfiguration, emptyArray, emptyObject, noop, LogLevel, EventAggregator, IEventAggregator, isArrayIndex, camelCase, kebabCase, pascalCase, toArray, bound, } from '@aurelia/kernel'; | ||
export { all, DI, IContainer, type IFactory, inject, resolve, type IRegistration, type IRegistry, type IResolver, IServiceLocator, type Key, lazy, factory, newInstanceOf, newInstanceForScope, optional, resource, allResources, ignore, Registration, singleton, transient, InstanceProvider, type Resolved, type Class, type Constructable, type ConstructableClass, type IDisposable, type IIndexable, type ColorOptions, ILogger, ConsoleSink, LoggerConfiguration, emptyArray, emptyObject, noop, LogLevel, EventAggregator, IEventAggregator, isArrayIndex, camelCase, kebabCase, pascalCase, toArray, bound, } from '@aurelia/kernel'; | ||
export { type CollectionKind, batch, ComputedObserver, IObserverLocator, ISignaler, subscriberCollection, type BindingBehaviorInstance, observable, type ValueConverterInstance, type IndexMap, } from '@aurelia/runtime'; | ||
export { customAttribute, CustomAttribute, templateController, containerless, customElement, CustomElement, capture, useShadowDOM, AppTask, BindingMode, bindable, type PartialBindableDefinition, Bindable, coercer, PartialChildrenDefinition, children, Controller, ViewFactory, IAppRoot, INode, IEventTarget, IRenderLocation, type ICustomAttributeViewModel, type ICustomElementViewModel, IFlushQueue, FlushQueue, IFlushable, renderer, IAurelia, NodeObserverLocator, IAuSlot, IAuSlotsInfo, AuSlotsInfo, IAuSlotWatcher, slotted, ChildrenBinding, ITemplateCompiler, ITemplateCompilerHooks, TemplateCompilerHooks, templateCompilerHooks, attributePattern, IAttributePattern, IAttrMapper, alias, registerAliases, bindingBehavior, BindingBehavior, valueConverter, ValueConverter, bindingCommand, type BindingCommandInstance, type IEnhancementConfig, type IHydratedParentController, ShortHandBindingSyntax, StyleConfiguration, type IShadowDOMConfiguration, cssModules, shadowCSS, processContent, ILifecycleHooks, type LifecycleHook, LifecycleHooks, lifecycleHooks, watch, IKeyMapping, IModifiedEventHandlerCreator, IEventModifier, type IModifiedEventHandler, } from '@aurelia/runtime-html'; | ||
export { customAttribute, CustomAttribute, templateController, containerless, customElement, CustomElement, capture, useShadowDOM, AppTask, BindingMode, bindable, type PartialBindableDefinition, Bindable, coercer, type PartialChildrenDefinition, children, Controller, ViewFactory, type ISinglePageAppConfig, IAppRoot, INode, IEventTarget, IRenderLocation, type ICustomAttributeViewModel, type ICustomElementViewModel, IController, IViewFactory, IFlushQueue, FlushQueue, type IFlushable, renderer, IAurelia, NodeObserverLocator, type IAuSlot, IAuSlotsInfo, AuSlotsInfo, IAuSlotWatcher, slotted, ChildrenBinding, ITemplateCompiler, ITemplateCompilerHooks, TemplateCompilerHooks, templateCompilerHooks, attributePattern, IAttributePattern, IAttrMapper, alias, registerAliases, bindingBehavior, BindingBehavior, valueConverter, ValueConverter, bindingCommand, type BindingCommandInstance, type IEnhancementConfig, type IHydratedParentController, ShortHandBindingSyntax, StyleConfiguration, type IShadowDOMConfiguration, cssModules, shadowCSS, processContent, ILifecycleHooks, type LifecycleHook, LifecycleHooks, lifecycleHooks, watch, IKeyMapping, IModifiedEventHandlerCreator, IEventModifier, type IModifiedEventHandler, } from '@aurelia/runtime-html'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "aurelia", | ||
"version": "2.1.0-dev.202402292237", | ||
"version": "2.1.0-dev.202404120945", | ||
"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/aurelia" | ||
}, | ||
@@ -56,12 +57,12 @@ "bugs": { | ||
"dependencies": { | ||
"@aurelia/fetch-client": "2.1.0-dev.202402292237", | ||
"@aurelia/kernel": "2.1.0-dev.202402292237", | ||
"@aurelia/metadata": "2.1.0-dev.202402292237", | ||
"@aurelia/platform": "2.1.0-dev.202402292237", | ||
"@aurelia/platform-browser": "2.1.0-dev.202402292237", | ||
"@aurelia/runtime": "2.1.0-dev.202402292237", | ||
"@aurelia/runtime-html": "2.1.0-dev.202402292237" | ||
"@aurelia/fetch-client": "2.1.0-dev.202404120945", | ||
"@aurelia/kernel": "2.1.0-dev.202404120945", | ||
"@aurelia/metadata": "2.1.0-dev.202404120945", | ||
"@aurelia/platform": "2.1.0-dev.202404120945", | ||
"@aurelia/platform-browser": "2.1.0-dev.202404120945", | ||
"@aurelia/runtime": "2.1.0-dev.202404120945", | ||
"@aurelia/runtime-html": "2.1.0-dev.202404120945" | ||
}, | ||
"devDependencies": { | ||
"typescript": "5.2.2" | ||
"typescript": "5.4.2" | ||
}, | ||
@@ -68,0 +69,0 @@ "engines": { |
122
src/index.ts
import { DI, IContainer, Registration } from '@aurelia/kernel'; | ||
import { StandardConfiguration, Aurelia as $Aurelia, IPlatform, IAppRoot, CustomElementType, CustomElement, IHydratedParentController, ICustomElementViewModel } from '@aurelia/runtime-html'; | ||
import { StandardConfiguration, Aurelia as $Aurelia, IPlatform, CustomElementType, CustomElement, ICustomElementViewModel } from '@aurelia/runtime-html'; | ||
import { BrowserPlatform } from '@aurelia/platform-browser'; | ||
import type { ISinglePageApp, IEnhancementConfig } from '@aurelia/runtime-html'; | ||
import type { ISinglePageAppConfig, IEnhancementConfig } from '@aurelia/runtime-html'; | ||
@@ -22,12 +22,8 @@ export const PLATFORM = BrowserPlatform.getOrCreate(globalThis); | ||
public static start(root: IAppRoot | undefined): void | Promise<void> { | ||
return new Aurelia().start(root); | ||
} | ||
public static app(config: ISinglePageApp | CustomElementType): Omit<Aurelia, 'register' | 'app' | 'enhance'> { | ||
public static app(config: ISinglePageAppConfig<object> | CustomElementType): Omit<Aurelia, 'register' | 'app' | 'enhance'> { | ||
return new Aurelia().app(config); | ||
} | ||
public static enhance<T extends ICustomElementViewModel>(config: IEnhancementConfig<T>, parentController?: IHydratedParentController): ReturnType<$Aurelia['enhance']> { | ||
return new Aurelia().enhance(config, parentController); | ||
public static enhance<T extends ICustomElementViewModel>(config: IEnhancementConfig<T>): ReturnType<$Aurelia['enhance']> { | ||
return new Aurelia().enhance(config); | ||
} | ||
@@ -39,3 +35,3 @@ | ||
public app(config: ISinglePageApp | CustomElementType): Omit<this, 'register' | 'app' | 'enhance'> { | ||
public app(config: ISinglePageAppConfig<object> | CustomElementType): Omit<this, 'register' | 'app' | 'enhance'> { | ||
if (CustomElement.isType(config)) { | ||
@@ -63,20 +59,2 @@ // Default to custom element element name | ||
export { | ||
type IFetchInterceptor, | ||
IFetchFn, | ||
// RetryConfiguration, | ||
// RetryableRequest, | ||
// ValidInterceptorMethodName, | ||
json, | ||
// retryStrategy, | ||
// RetryInterceptor, | ||
HttpClientConfiguration, | ||
HttpClient, | ||
IHttpClient, | ||
} from '@aurelia/fetch-client'; | ||
export { | ||
Metadata, | ||
@@ -103,4 +81,3 @@ // isNullOrUndefined, | ||
IContainer, | ||
// IDefaultableInterfaceSymbol, | ||
// IFactory, | ||
type IFactory, | ||
inject, | ||
@@ -114,6 +91,10 @@ resolve, | ||
lazy, | ||
factory, | ||
newInstanceOf, | ||
newInstanceForScope, | ||
optional, | ||
// RegisterSelf, | ||
resource, | ||
allResources, | ||
ignore, | ||
Registration, | ||
// ResolveCallback, | ||
singleton, | ||
@@ -379,11 +360,3 @@ transient, | ||
// IfRegistration, | ||
// ElseRegistration, | ||
// RepeatRegistration, | ||
// ReplaceableRegistration, | ||
// WithRegistration, | ||
// DefaultResources as RuntimeDefaultResources, | ||
// IObserverLocatorRegistration, | ||
// IRendererRegistration, | ||
// RuntimeConfiguration, | ||
@@ -412,3 +385,2 @@ | ||
// IViewCache, | ||
// IViewFactory, | ||
// MountStrategy, | ||
@@ -505,3 +477,3 @@ | ||
PartialChildrenDefinition, | ||
type PartialChildrenDefinition, | ||
// Children, | ||
@@ -521,26 +493,6 @@ children, | ||
// IDOMInitializer, | ||
// ISinglePageApp, | ||
type ISinglePageAppConfig, | ||
IAppRoot, | ||
// IfRegistration, | ||
// ElseRegistration, | ||
// RepeatRegistration, | ||
// ReplaceableRegistration, | ||
// WithRegistration, | ||
// SanitizeValueConverterRegistration, | ||
// DebounceBindingBehaviorRegistration, | ||
// OneTimeBindingBehaviorRegistration, | ||
// ToViewBindingBehaviorRegistration, | ||
// FromViewBindingBehaviorRegistration, | ||
// SignalBindingBehaviorRegistration, | ||
// ThrottleBindingBehaviorRegistration, | ||
// TwoWayBindingBehaviorRegistration, | ||
// CallBindingRendererRegistration, | ||
// DefaultResources as RuntimeDefaultResources, | ||
// IObserverLocatorRegistration, | ||
// IRendererRegistration, | ||
// RuntimeConfiguration, | ||
@@ -558,3 +510,2 @@ | ||
// IInstructionRow, | ||
// InstructionTypeName, | ||
// IPropertyBindingInstruction, | ||
@@ -580,6 +531,6 @@ // IRefBindingInstruction, | ||
type ICustomElementViewModel, | ||
// IController, | ||
IController, | ||
// IContainer, | ||
// IViewCache, | ||
// IViewFactory, | ||
IViewFactory, | ||
// MountStrategy, | ||
@@ -598,3 +549,3 @@ | ||
FlushQueue, | ||
IFlushable, | ||
type IFlushable, | ||
@@ -682,3 +633,3 @@ renderer, | ||
// Compose, | ||
IAuSlot, | ||
type IAuSlot, | ||
IAuSlotsInfo, | ||
@@ -689,7 +640,2 @@ AuSlotsInfo, | ||
// IProjectorLocatorRegistration, | ||
// ITargetAccessorLocatorRegistration, | ||
// ITargetObserverLocatorRegistration, | ||
// ITemplateFactoryRegistration, | ||
// DefaultComponents as RuntimeHtmlDefaultComponents, | ||
@@ -700,3 +646,2 @@ | ||
// IRenderer, | ||
// IInstructionTypeClassifier, | ||
// IRenderingEngine, | ||
@@ -756,28 +701,8 @@ // ITemplate, | ||
// IExpressionParserRegistration, | ||
// DefaultComponents as JitDefaultComponents, | ||
// RefAttributePatternRegistration, | ||
// DotSeparatedAttributePatternRegistration, | ||
// DefaultBindingSyntax, | ||
// AtPrefixedTriggerAttributePatternRegistration, | ||
// ColonPrefixedBindAttributePatternRegistration, | ||
ShortHandBindingSyntax, | ||
// CallBindingCommandRegistration, | ||
// DefaultBindingCommandRegistration, | ||
// ForBindingCommandRegistration, | ||
// FromViewBindingCommandRegistration, | ||
// OneTimeBindingCommandRegistration, | ||
// ToViewBindingCommandRegistration, | ||
// TwoWayBindingCommandRegistration, | ||
// SelfBindingBehaviorRegistration, | ||
// UpdateTriggerBindingBehaviorRegistration, | ||
// ComposeRegistration, | ||
// DefaultResources as RuntimeHtmlDefaultResources, | ||
@@ -838,4 +763,2 @@ | ||
// ITemplateCompilerRegistration, | ||
// ITemplateElementFactoryRegistration, | ||
// IAttrSyntaxTransformerRegistation, | ||
@@ -845,9 +768,2 @@ | ||
// TriggerBindingCommandRegistration, | ||
// DelegateBindingCommandRegistration, | ||
// CaptureBindingCommandRegistration, | ||
// AttrBindingCommandRegistration, | ||
// ClassBindingCommandRegistration, | ||
// StyleBindingCommandRegistration, | ||
// DefaultBindingLanguage as JitHtmlDefaultBindingLanguage, | ||
@@ -854,0 +770,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
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
80504
1146
+ Added@aurelia/fetch-client@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/kernel@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/metadata@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/platform@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/platform-browser@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/runtime@2.1.0-dev.202404120945(transitive)
+ Added@aurelia/runtime-html@2.1.0-dev.202404120945(transitive)
- Removed@aurelia/fetch-client@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/kernel@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/metadata@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/platform@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/platform-browser@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/runtime@2.1.0-dev.202402292237(transitive)
- Removed@aurelia/runtime-html@2.1.0-dev.202402292237(transitive)