i18next-http-middleware
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -0,2 +1,5 @@ | ||
## [v2.1.0](https://github.com/i18next/i18next-http-middleware/compare/v2.0.0...v2.1.0) | ||
- LanguageDetector: cookie, new option: cookiePath | ||
## [v2.0.0](https://github.com/i18next/i18next-http-middleware/compare/v1.3.1...v2.0.0) | ||
- potentially BREAKING: change cookie defaults: cookieSameSite: 'strict' |
@@ -50,2 +50,3 @@ "use strict"; | ||
// cookieDomain: 'myDomain' | ||
// cookiePath: '/my/path' | ||
checkWhitelist: true, | ||
@@ -52,0 +53,0 @@ checkForSimilarInWhitelist: false, |
@@ -103,2 +103,3 @@ "use strict"; | ||
domain: options.cookieDomain, | ||
path: options.cookiePath, | ||
httpOnly: false, | ||
@@ -105,0 +106,0 @@ overwrite: true, |
@@ -21,2 +21,3 @@ import * as utils from './utils.js' | ||
// cookieDomain: 'myDomain' | ||
// cookiePath: '/my/path' | ||
@@ -23,0 +24,0 @@ checkWhitelist: true, |
@@ -81,2 +81,3 @@ // eslint-disable-next-line no-control-regex | ||
domain: options.cookieDomain, | ||
path: options.cookiePath, | ||
httpOnly: false, | ||
@@ -83,0 +84,0 @@ overwrite: true, |
{ | ||
"name": "i18next-http-middleware", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -301,2 +301,3 @@ # Introduction | ||
cookieDomain: 'myDomain', | ||
cookiePath: '/my/path', | ||
cookieSecure: true, // if need secure cookie | ||
@@ -303,0 +304,0 @@ cookieSameSite: 'strict', // 'strict', 'lax' or 'none' |
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
71001
1436
391