@frontegg/nextjs 8.0.11-alpha.7465060393 → 8.0.11-alpha.7600753901

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,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## [8.0.11](https://github.com/frontegg/frontegg-nextjs/compare/v8.0.10...v8.0.11) (2024-1-21)
4
+
5
+
6
+ ### NextJS Wrapper 8.0.11:
7
+ - FR-14458 - fix build
8
+ - FR-14827 - allow alpha creation manually
9
+ - FR-14458 - Fixed error on middleware request since NextJs V14.0.2
10
+ - FR-14800 - remove app url end char if is /
11
+
3
12
  ## [8.0.10](https://github.com/frontegg/frontegg-nextjs/compare/v8.0.9...v8.0.10) (2023-12-31)
4
13
 
5
14
  - FR-14578 - Fixed custom login without tenant alias
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v8.0.11-alpha.7465060393
1
+ /** @license Frontegg v8.0.11-alpha.7600753901
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -15,6 +15,11 @@ const FronteggProxy = (0, _httpProxy.createProxyServer)({
15
15
  target: process.env['FRONTEGG_BASE_URL'],
16
16
  changeOrigin: true,
17
17
  selfHandleResponse: true,
18
+ /**
19
+ * We set xfwd to true to avoid next-js buggy implementation of x-forwarded-* headers in version 14.0.2
20
+ * They set the x-forwarded-port header to be 'undefined' in production environment - https://github.com/vercel/next.js/issues/58295
21
+ * This causes our proxy middleware to fail on every request
22
+ */
18
23
  xfwd: true
19
24
  });
20
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"FronteggProxy.js","names":["_httpProxy","require","_ProxyRequestCallback","_interopRequireDefault","_ProxyResponseCallback","FronteggProxy","createProxyServer","target","process","env","changeOrigin","selfHandleResponse","xfwd","exports","on","ProxyRequestCallback","ProxyResponseCallback"],"sources":["../../../../packages/nextjs/src/middleware/FronteggProxy.ts"],"sourcesContent":["import { createProxyServer } from 'http-proxy';\nimport ProxyRequestCallback from './ProxyRequestCallback';\nimport ProxyResponseCallback from './ProxyResponseCallback';\n\n/**\n * @see https://www.npmjs.com/package/http-proxy\n */\nexport const FronteggProxy = createProxyServer({\n target: process.env['FRONTEGG_BASE_URL'],\n changeOrigin: true,\n selfHandleResponse: true,\n xfwd: true,\n});\n\n/**\n * Set proxy request callback handler\n */\n// @ts-ignore\nFronteggProxy.on('proxyReq', ProxyRequestCallback);\n/**\n * Set proxy response callback handler\n */\n// @ts-ignore\nFronteggProxy.on('proxyRes', ProxyResponseCallback);\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA;AACA;AACA;AACO,MAAMI,aAAa,GAAG,IAAAC,4BAAiB,EAAC;EAC7CC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;EACxCC,YAAY,EAAE,IAAI;EAClBC,kBAAkB,EAAE,IAAI;EACxBC,IAAI,EAAE;AACR,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AAAAC,OAAA,CAAAR,aAAA,GAAAA,aAAA;AACAA,aAAa,CAACS,EAAE,CAAC,UAAU,EAAEC,6BAAoB,CAAC;AAClD;AACA;AACA;AACA;AACAV,aAAa,CAACS,EAAE,CAAC,UAAU,EAAEE,8BAAqB,CAAC"}
1
+ {"version":3,"file":"FronteggProxy.js","names":["_httpProxy","require","_ProxyRequestCallback","_interopRequireDefault","_ProxyResponseCallback","FronteggProxy","createProxyServer","target","process","env","changeOrigin","selfHandleResponse","xfwd","exports","on","ProxyRequestCallback","ProxyResponseCallback"],"sources":["../../../../packages/nextjs/src/middleware/FronteggProxy.ts"],"sourcesContent":["import { createProxyServer } from 'http-proxy';\nimport ProxyRequestCallback from './ProxyRequestCallback';\nimport ProxyResponseCallback from './ProxyResponseCallback';\n\n/**\n * @see https://www.npmjs.com/package/http-proxy\n */\nexport const FronteggProxy = createProxyServer({\n target: process.env['FRONTEGG_BASE_URL'],\n changeOrigin: true,\n selfHandleResponse: true,\n /**\n * We set xfwd to true to avoid next-js buggy implementation of x-forwarded-* headers in version 14.0.2\n * They set the x-forwarded-port header to be 'undefined' in production environment - https://github.com/vercel/next.js/issues/58295\n * This causes our proxy middleware to fail on every request\n */\n xfwd: true,\n});\n\n/**\n * Set proxy request callback handler\n */\n// @ts-ignore\nFronteggProxy.on('proxyReq', ProxyRequestCallback);\n/**\n * Set proxy response callback handler\n */\n// @ts-ignore\nFronteggProxy.on('proxyRes', ProxyResponseCallback);\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA;AACA;AACA;AACO,MAAMI,aAAa,GAAG,IAAAC,4BAAiB,EAAC;EAC7CC,MAAM,EAAEC,OAAO,CAACC,GAAG,CAAC,mBAAmB,CAAC;EACxCC,YAAY,EAAE,IAAI;EAClBC,kBAAkB,EAAE,IAAI;EACxB;AACF;AACA;AACA;AACA;EACEC,IAAI,EAAE;AACR,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AAAAC,OAAA,CAAAR,aAAA,GAAAA,aAAA;AACAA,aAAa,CAACS,EAAE,CAAC,UAAU,EAAEC,6BAAoB,CAAC;AAClD;AACA;AACA;AACA;AACAV,aAAa,CAACS,EAAE,CAAC,UAAU,EAAEE,8BAAqB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/nextjs",
3
3
  "libName": "FronteggNextJs",
4
- "version": "8.0.11-alpha.7465060393",
4
+ "version": "8.0.11-alpha.7600753901",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "repository": {
package/sdkVersion.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
- version: '8.0.11-alpha.7465060393'
8
+ version: '8.0.11-alpha.7600753901'
9
9
  };
10
10
  exports.default = _default;
11
11
  //# sourceMappingURL=sdkVersion.js.map
package/sdkVersion.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdkVersion.js","names":["version","exports","default","_default"],"sources":["../../../packages/nextjs/src/sdkVersion.ts"],"sourcesContent":["export default { version: '8.0.11-alpha.7465060393' };\n"],"mappings":";;;;;;eAAe;EAAEA,OAAO,EAAE;AAA0B,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAC,QAAA"}
1
+ {"version":3,"file":"sdkVersion.js","names":["version","exports","default","_default"],"sources":["../../../packages/nextjs/src/sdkVersion.ts"],"sourcesContent":["export default { version: '8.0.11-alpha.7600753901' };\n"],"mappings":";;;;;;eAAe;EAAEA,OAAO,EAAE;AAA0B,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAC,QAAA"}