ngx-translate-multi-http-loader
Advanced tools
Comparing version 17.0.0 to 18.0.0
{ | ||
"name": "ngx-translate-multi-http-loader", | ||
"version": "17.0.0", | ||
"version": "18.0.0", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "author": { | ||
"dependencies": { | ||
"tslib": "^2.6.2" | ||
"tslib": "^2.6.3" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
"@ngx-translate/core": ">=15.0.0", | ||
"deepmerge-ts": "^5.1.0", | ||
"deepmerge-ts": "^7.0.3", | ||
"rxjs": "^7.8.1" | ||
@@ -36,0 +36,0 @@ }, |
@@ -1,5 +0,8 @@ | ||
# @ngx-translate/multi-http-loader [![npm version](https://img.shields.io/npm/v/ngx-translate-multi-http-loader.svg)](https://www.npmjs.com/package/ngx-translate-multi-http-loader) | ||
# @ngx-translate/multi-http-loader | ||
A loader for [ngx-translate](https://github.com/ngx-translate/core) that loads translations using http. | ||
[![npm version](https://img.shields.io/npm/v/ngx-translate-multi-http-loader.svg)](https://www.npmjs.com/package/ngx-translate-multi-http-loader) ![NPM](https://img.shields.io/npm/l/ngx-translate-multi-http-loader) ![npm bundle size](https://img.shields.io/bundlephobia/min/ngx-translate-multi-http-loader) | ||
![npm](https://img.shields.io/npm/dm/ngx-translate-multi-http-loader) | ||
Angular 14 example: https://stackblitz.com/edit/ngx-translate-multi-http-loader-sample-2clau3?file=src/app/app.module.ts | ||
@@ -13,2 +16,3 @@ | ||
* [Usage](#usage) | ||
* [Error & BugFix](#possible-error--bugfix) | ||
@@ -23,6 +27,8 @@ ## breaking change: v9.0.0 | ||
Now you need to install the npm module for `MultiTranslateHttpLoader`: | ||
Now you need to install the npm module for `MultiTranslateHttpLoader`: | ||
[deepmerge-ts](https://www.npmjs.com/package/deepmerge-ts) may also need to be installed _should be done automatically though_ | ||
```sh | ||
npm install ngx-translate-multi-http-loader --save | ||
npm install ngx-translate-multi-http-loader | ||
npm install deepmerge-ts | ||
``` | ||
@@ -34,2 +40,4 @@ | ||
| ------- | ------------------- | ------------------------------- | | ||
| 16 | 16.x+ | 15.x+ | | ||
| 15 | 15.x+ | 9.x+ | | ||
| 14 | 14.x+ | 8.x+ | | ||
@@ -102,6 +110,22 @@ | 13 | 14.x+ | 7.x+ | | ||
## Possible error & Bugfix | ||
### Can't resolve 'deepmerge-ts' | ||
1. run `npm i deepmerge-ts` | ||
This is due to some version of npm not being able to download peerDependencies properly. | ||
I decided to **not** move it under dependencies since it's considered to be a bad practice. | ||
### values.at is not a function | ||
1. Install `core-js` | ||
2. In `polyfills.ts`, add `import 'core-js/modules/es.array.at'` | ||
`deepmerge-ts@5` uses `Array.at`, which is [not supported](https://caniuse.com/?search=array.at) in _not so_ old versions of Safari `< 15.4`. | ||
## Authors and acknowledgment | ||
* maintainer [Raphaël Balet](https://github.com/rbalet) | ||
* Former maintainer [Dennis Keil](https://github.com/denniske) | ||
* | ||
[![BuyMeACoffee](https://www.buymeacoffee.com/assets/img/custom_images/purple_img.png)](https://www.buymeacoffee.com/widness) |
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
16980
128
0
+ Addeddeepmerge-ts@7.1.3(transitive)
- Removeddeepmerge-ts@5.1.0(transitive)
Updatedtslib@^2.6.3