Skip to content

Latest commit

 

History

History
186 lines (150 loc) · 8.39 KB

CHANGELOG.md

File metadata and controls

186 lines (150 loc) · 8.39 KB

Changelog

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

3.1.1 - 2024-10-28

Maintenance

  • Fix: HookValue.elementSnapshot now contains a deep clone of the found element

3.1.0 - 2024-10-08

Added

  • Feat: Added support for self-closing tags in TextSelectorHookParser via new "allowSelfClosing" option in SelectorHookParserConfig
  • Feat: TextSelectorHookParser now uses selector as host element if no custom hostElementTag given

Misc

  • Maintenance: Deprecated older "enclosing" option in SelectorHookParserConfig

3.0.4 - 2024-09-26

Maintenance

  • Fix: Added support for new signal-based inputs

3.0.3 - 2024-09-05

Maintenance

  • Fix: Change detection is now manually triggered when dynamic component inputs change in zoneless mode with OnPush strategy

3.0.2 - 2024-09-04

Maintenance

  • Refactor: Added simpler way to configure lazily-loading components by using a function that return the component class directly

3.0.1 - 2024-08-30

Maintenance

  • Fix: Added manual toggle in SelectorHookParserConfig to revert to regex-based parsing for selector hooks to improve backwards-compatibility

3.0.0 - 2024-08-21

Added

  • Feat: Switch to standalone components architecture
  • Feat: Addded simpler signatures to use the library, including just passing in the component class
  • Feat: Added the ability to pass use a HTML element as the content input
  • Feat: Added element hooks (components can now be loaded into HTML elements instead of just replacing text)
  • Feat: Introduced Standalone mode. Load components into arbitrary HTML without an Angular app.
  • Feat: Made PlatformService work during SSR by default
  • Feat: Added DynamicSingleComponent for loading just one component dynamically
  • Feat: Cleaned up and added 100+ new tests
  • Many more minor improvements and modernizations all around the library

Changed

  • Refactor: Combined provideDynamicHooks and provideDynamicHooksForChild
  • Refactor: Registering global settings (via provideDynamicHooks) is now optional
  • Refactor: Moved CI flow to Github Actions

Misc

2.1.2 - 2024-08-21

Added

  • Fix: Content slot elements should no longer appear as component children after rendering is done

2.1.1 - 2024-04-16

Added

  • Fix: Resolved errors caused by lazily-loaded dynamic components when using SSR

2.1.0 - 2023-03-21

Added

  • Added forChild feature
  • Fix: Outputs of dynamic components now still work in onDestroy

2.0.6 - 2023-03-15

Maintenance

  • Fix: No longer de/serializes nested context variables, which caused unserializable objects to be removed

2.0.5 - 2022-12-21

Maintenance

  • Fix: Included stack traces when logging some errors

2.0.4 - 2022-12-21

Maintenance

  • Maintenance: Checked compatibility with Angular 15 and updated readme.

2.0.3 - 2022-05-23

Maintenance

  • Maintenance: Checked compatibility with Angular 14 and updated readme.

2.0.2 - 2022-05-23

Maintenance

  • Fix: Dynamically-created components now use the nearest injector by default, not the root injector. This prevents routing bugs related to components being passed the wrong ActivatedRoute.

2.0.1 - 2022-05-01

Maintenance

  • Changed readme

2.0.0 - 2021-11-06

Update

  • Support for rxjs 7 and full update of all dependencies.
  • As a side effect, only Angular versions 13 or newer are supported going forward

1.7.2 - 2021-11-06

Maintenance

  • Update to Angular 13
  • Updated readme

1.7.1 - 2021-07-07

Maintenance

  • Fixed bug so that bracketless inputs with empty values now return empty strings instead of undefined

1.7.0 - 2021-06-01

Added

  • Introduced PlatformService which serves as an abstraction layer for DOM manipulation. By defining custom PlatformServices, users can now use the library on other platforms than the browser as well.

1.6.0 - 2021-05-19

Maintenance

  • Update to Angular 12
  • Updated readme

1.5.1 - 2021-03-08

Maintenance

  • Input/Output names on selector hooks can now include hyphens (-)

1.5.0 - 2021-02-02

Maintenance

  • Improved component host element creation logic to fix a bug of child components not loading when they are not immediately part of the DOM (through *ngIf, for example). Due to this, lazily-loaded components are now wrapped in anchor elements.

1.4.1 - 2020-12-30

Maintenance

  • Improved compatibility with IE11 and older versions of JavaScript

1.4.0 - 2020-11-14

Maintenance

  • Update to Angular 11
  • Updated readme

1.3.0 - 2020-11-03

Added

  • Introduced OutletService, which can be used to parse a content string programmatically, skipping the use of the OutletComponent.

1.2.1 - 2020-09-23

Added

  • Input/Output names for selector hooks can now contain numbers as well as the _ and $ characters (as long as the number is not the first character, which would be an invalid JavaScript variable name).

1.2.0 - 2020-09-23

Added

  • Inputs can now also be passed to dynamic components without []-brackets as normal HTML attributes, in which case they will be considered strings.

1.1.0 - 2020-08-26

Added

  • More tests of baseline functionality

Changed

  • The "componentsLoaded"-output of the OutletComponent now returns a more useful LoadedComponent-array instead of just true.
  • The hook indexes now start from 1 instead of from 0

1.0.0 - 2020-08-26

Added

  • This was the initial release, so everything was added here, really.