@opennextjs/cloudflare 1.16.5 → 1.16.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.
@@ -52,9 +52,10 @@ async function getLatestCompatDate() {
52
52
  // The format of the workerd version is `major.yyyymmdd.patch`.
53
53
  const match = latestWorkerdVersion.match(/\d+\.(\d{4})(\d{2})(\d{2})\.\d+/);
54
54
  if (match) {
55
- const [, year, month, date] = match;
56
- const compatDate = `${year}-${month}-${date}`;
57
- return compatDate;
55
+ const [, year, month, day] = match;
56
+ const compatDate = `${year}-${month}-${day}`;
57
+ const currentDate = new Date().toISOString().slice(0, 10);
58
+ return compatDate < currentDate ? compatDate : currentDate;
58
59
  }
59
60
  }
60
61
  catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@opennextjs/cloudflare",
3
3
  "description": "Cloudflare builder for next apps",
4
- "version": "1.16.5",
4
+ "version": "1.16.6",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "opennextjs-cloudflare": "dist/cli/index.js"