Skip to content

Commit

Permalink
feat: deprecate manager provider APIs v1 (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored Oct 17, 2024
1 parent 64ec678 commit ba1e20a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-meta/api-extractor/ngx-meta.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ export interface MakeKeyValMetaDefinitionOptions {
valAttr?: string;
}

// @public
// @public @deprecated
export const makeMetadataManagerProviderFromSetterFactory: <T>(setterFactory: MetadataSetterFactory<T>, opts: MakeMetadataManagerProviderFromSetterFactoryOptions) => FactoryProvider;

// @public
// @public @deprecated
export interface MakeMetadataManagerProviderFromSetterFactoryOptions {
d?: FactoryProvider['deps'];
g?: MetadataResolverOptions['global'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ You can also check a full example at [example standalone app]'s [`provideCustomM
If you need, you can still check [this guide when it was using it](https://github.com/davidlj95/ngx/blob/ngx-meta-v1.0.0-beta.20/projects/ngx-meta/docs/content/guides/manage-your-custom-metadata.md)
Or the [example app file using it](https://github.com/davidlj95/ngx/blob/ngx-meta-v1.0.0-beta.20/projects/ngx-meta/example-apps/templates/standalone/src/app/meta-late-loaded/provide-custom-metadata-manager.ts)

Anyway, it's recommended you upgrade to the new one described in the guide as soon as you can.
Otherwise, built-in modules are using the new one. And if you use this, then two functions will end up in
your bundle size that do the same. So some extra unwanted bytes in there.
However, beware that those APIs are now deprecated and will be removed in the future. It's recommended to upgrade to the new one described in the guide as soon as you can.

Also, built-in modules are using the new one. And if you use this, then two functions will end up in your bundle that do the same. So some extra unneeded bytes in there.

### Using a class

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// noinspection JSDeprecatedSymbols

import {
MetadataResolverOptions,
NgxMetaMetadataManager,
Expand All @@ -11,6 +13,9 @@ import { MetadataSetterFactory } from '../metadata-setter-factory'
*
* See {@link https://ngx-meta.dev/guides/manage-your-custom-metadata/ | manage custom metadata guide} for an example.
*
* @deprecated Use {@link provideNgxMetaManager} APIs instead.
* See {@link https://ngx-meta.dev/guides/manage-your-custom-metadata/ | custom metadata guide} for more information.
*
* @remarks
*
* Factory providers are used for built-in modules instead of Angular services.
Expand Down Expand Up @@ -48,6 +53,9 @@ export const makeMetadataManagerProviderFromSetterFactory = <T>(
/**
* Options argument object for {@link makeMetadataManagerProviderFromSetterFactory}.
*
* @deprecated Use {@link provideNgxMetaManager} APIs instead.
* See {@link https://ngx-meta.dev/guides/manage-your-custom-metadata/ | custom metadata guide} for more information.
*
* @public
*/
export interface MakeMetadataManagerProviderFromSetterFactoryOptions {
Expand Down

0 comments on commit ba1e20a

Please sign in to comment.