i18next-http-middleware 3.0.5 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [v3.0.6](https://github.com/i18next/i18next-http-middleware/compare/v3.0.5...v3.0.6)
2
+ - ignoreCase option true by default
3
+
1
4
  ## [v3.0.5](https://github.com/i18next/i18next-http-middleware/compare/v3.0.4...v3.0.5)
2
5
  - introduce ignoreCase option
3
6
 
package/README.md CHANGED
@@ -296,7 +296,7 @@ As with all modules you can either pass the constructor function (class) to the
296
296
  // cache user language
297
297
  caches: false, // ['cookie']
298
298
 
299
- ignoreCase: false, // ignore case of detected language
299
+ ignoreCase: true, // ignore case of detected language
300
300
 
301
301
  // optional expire and domain for set cookie
302
302
  cookieExpirationDate: new Date(),
@@ -41,7 +41,8 @@ function getDefaults() {
41
41
  lookupSession: 'lng',
42
42
  lookupFromPathIndex: 0,
43
43
  caches: false,
44
- cookieSameSite: 'strict'
44
+ cookieSameSite: 'strict',
45
+ ignoreCase: true
45
46
  });
46
47
  }
47
48
 
@@ -20,7 +20,8 @@ function getDefaults() {
20
20
  lookupSession: 'lng',
21
21
  lookupFromPathIndex: 0,
22
22
  caches: false,
23
- cookieSameSite: 'strict'
23
+ cookieSameSite: 'strict',
24
+ ignoreCase: true
24
25
  });
25
26
  }
26
27
 
@@ -19,7 +19,8 @@ function getDefaults () {
19
19
  // cookieExpirationDate: new Date(),
20
20
  // cookieDomain: 'myDomain'
21
21
  // cookiePath: '/my/path'
22
- cookieSameSite: 'strict'
22
+ cookieSameSite: 'strict',
23
+ ignoreCase: true
23
24
  })
24
25
  }
25
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-http-middleware",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./cjs/index.js",