@ngx-pwa/local-storage
Advanced tools
Changelog
19.0.0 (2024-11-19)
Changelog
18.0.0 (2024-05-22)
StorageMap
natively private (#property
) instead of protected. Extending StorageMap
was undocumented so it is not considered a breaking change.Changelog
17.0.0 (2023-11-08)
LocalStorage
serviceJSONSchemaXXX
interfacesJSONValidator
LocalDatabase
See the migration guide.
Changelog
16.3.0 (2023-06-04)
Specific JSONSchemaXXX
interfaces are deprecated and will be removed in version 17. They were introduced in very old versions of this library as a workaround to some TypeScript issues which are gone for a long time now. Since version 8, you should have used the generic JSONSchema
interface. Note that if you are using JSONSchemaArray
for a tuple schema, you need to switch to JSONSchema
now because of the fix in version 16.2.0.
JSONValidator
is deprecated and will no longer be available in version 17. It is an internal utility class which is limited, could change at any time and is out of scope of this library. If you need a JSON validator, there are far better and dedicated libraries available like ajv.
LocalDatabase
is deprecated and will no longer be available in version 17. It is an internal utility class, and overriding it is an undocumented behavior. If you are doing so, you are basically rewriting your own storage library, so using this one makes no sense, you can your service directly.
Changelog
16.2.0 (2023-06-04)
Little adapatation of the JSONSchema
type for compatibility with @sinclair/typebox
. You will find a new way to validate with this library in the validation guide.
Changelog
16.1.0 (2023-05-23)
LocalStorage
service is deprecated and will be removed in v17. The StorageMap
replacement exists since v8 now, so it is time to move forward. As usual, see the migration guide.
Changelog
16.0.0 (2023-05-03)
Changelog
15.0.0 (2022-12-16)
Advanced configuration via StorageModule.forRoot()
is deprecated.
Use the new provideXXX()
methods as shown in the interoperability or collision guides, depending on your case.
This aligns with the new standalone APIs in Angular 15.