@remkoj/optimizely-cms-nextjs 5.1.7 → 5.2.0

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.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Optimizely SaaS CMS - Next.js Integration
2
+
3
+ > [!WARNING]
4
+ > There'll be an update of Optimizely SaaS CMS that is incompatible with all SDK versions prior to 5.1.6. If you don't upgrade, you will see empty pages (main website) and "Component not found" messages (preview).
5
+
2
6
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE)
3
7
 
4
8
  > [!TIP]
@@ -76,4 +80,4 @@ The package provides the following enhancements for Next.js middleware:
76
80
  | withEditFallback | `@remkoj/optimizely-cms-nextjs/preview` | Rewrite incoming Optimizely CMS 12 preview / on-page-edit URLs to Optimizely SaaS CMS preview URLs |
77
81
  | withLanguagePrefix | `@remkoj/optimizely-cms-nextjs/page` | Handle the redirect of the homepage `/` to the locale that best matches the incoming request, such as `/en`. The locales and their URLs are taken from the second parameter - the ChannelDefinition.
78
82
 
79
- If you use both wrappers, the `withEditFallback` wrapper must wrap the `withLanguagePrefix` wrapper, to ensure that the edit mode URL is rewritten before the language prefix is applied.
83
+ If you use both wrappers, the `withEditFallback` wrapper must wrap the `withLanguagePrefix` wrapper, to ensure that the edit mode URL is rewritten before the language prefix is applied.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@remkoj/optimizely-cms-nextjs",
3
3
  "description": "Next.JS integration for Optimizely SaaS CMS",
4
4
  "license": "Apache-2.0",
5
- "version": "5.1.7",
5
+ "version": "5.2.0",
6
6
  "repository": "https://github.com/remkoj/optimizely-dxp-clients.git",
7
7
  "author": "Remko Jantzen <693172+remkoj@users.noreply.github.com>",
8
8
  "homepage": "https://github.com/remkoj/optimizely-dxp-clients",
@@ -44,29 +44,29 @@
44
44
  }
45
45
  },
46
46
  "devDependencies": {
47
- "@remkoj/optimizely-cms-react": "5.1.7",
48
- "@remkoj/optimizely-graph-client": "5.1.7",
47
+ "@remkoj/optimizely-cms-react": "5.2.0",
48
+ "@remkoj/optimizely-graph-client": "5.2.0",
49
49
  "@types/negotiator": "^0.6.4",
50
- "@types/node": "^22.16.5",
51
- "@types/react": "^18.3.23",
50
+ "@types/node": "^22.19.3",
51
+ "@types/react": "^18.3.27",
52
52
  "@types/react-dom": "18.3.7",
53
- "graphql": "^16.11.0",
53
+ "graphql": "^16.12.0",
54
54
  "graphql-request": "^6.1.0",
55
- "next": "^14.2.30",
55
+ "next": "^14.2.35",
56
56
  "prop-types": "^15.8.1",
57
57
  "react": "^18.3.1",
58
58
  "react-dom": "^18.3.1",
59
- "scheduler": "^0.26.0",
60
- "typescript": "^5.8.3"
59
+ "scheduler": "^0.27.0",
60
+ "typescript": "^5.9.3"
61
61
  },
62
62
  "dependencies": {
63
- "@formatjs/intl-localematcher": "^0.6.1",
63
+ "@formatjs/intl-localematcher": "^0.7.5",
64
64
  "deepmerge": "^4.3.1",
65
65
  "negotiator": "^1.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@remkoj/optimizely-cms-react": "^5.1.7",
69
- "@remkoj/optimizely-graph-client": "^5.1.7",
68
+ "@remkoj/optimizely-cms-react": "^5.2.0",
69
+ "@remkoj/optimizely-graph-client": "^5.2.0",
70
70
  "graphql": "^16",
71
71
  "graphql-request": "^6",
72
72
  "next": "^14",