cdk-nextjs 0.7.5 → 0.7.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.
Files changed (51) hide show
  1. package/.jsii +37 -37
  2. package/docs/adapter-runtime.md +1 -1
  3. package/docs/harness-coverage.md +9 -8
  4. package/lib/adapter/adapter.mjs +220 -149
  5. package/lib/adapter/aws-cache-store.d.ts +28 -4
  6. package/lib/adapter/aws-cache-store.js +52 -21
  7. package/lib/adapter/aws-cache-store.test.js +36 -1
  8. package/lib/adapter/build-outputs.js +23 -1
  9. package/lib/adapter/build-outputs.test.js +18 -1
  10. package/lib/adapter/cache-handler.d.ts +4 -3
  11. package/lib/adapter/cache-handler.js +1 -1
  12. package/lib/adapter/cache-handler.mjs +131 -61
  13. package/lib/adapter/cache-handler.test.js +31 -1
  14. package/lib/adapter/cache-utils.d.ts +68 -2
  15. package/lib/adapter/cache-utils.js +108 -2
  16. package/lib/adapter/cache-utils.test.js +45 -1
  17. package/lib/adapter/init-cache.d.ts +1 -1
  18. package/lib/adapter/init-cache.js +60 -37
  19. package/lib/adapter/init-cache.test.js +55 -2
  20. package/lib/adapter/local-file-cache-handler.d.ts +2 -2
  21. package/lib/adapter/local-file-cache-handler.js +4 -5
  22. package/lib/adapter/s3-cache-handler.d.ts +23 -7
  23. package/lib/adapter/s3-cache-handler.js +63 -27
  24. package/lib/adapter/s3-cache-handler.test.js +168 -1
  25. package/lib/adapter/use-cache-default-handler.mjs +32 -9
  26. package/lib/adapter/use-cache-remote-handler.js +2 -3
  27. package/lib/adapter/use-cache-remote-handler.mjs +81 -61
  28. package/lib/nextjs-api.js +1 -1
  29. package/lib/nextjs-build/nextjs-build.d.ts +0 -7
  30. package/lib/nextjs-build/nextjs-build.js +4 -11
  31. package/lib/nextjs-build/nextjs-build.test.js +4 -3
  32. package/lib/nextjs-cache.js +1 -1
  33. package/lib/nextjs-compute/nextjs-containers.js +1 -1
  34. package/lib/nextjs-compute/nextjs-functions.js +1 -1
  35. package/lib/nextjs-distribution.js +1 -1
  36. package/lib/nextjs-post-deploy.js +1 -1
  37. package/lib/nextjs-static-assets.js +1 -1
  38. package/lib/root-constructs/nextjs-base-construct.js +1 -1
  39. package/lib/root-constructs/nextjs-global-containers.js +1 -1
  40. package/lib/root-constructs/nextjs-global-functions.js +1 -1
  41. package/lib/root-constructs/nextjs-regional-containers.js +1 -1
  42. package/lib/root-constructs/nextjs-regional-functions.js +1 -1
  43. package/lib/runtime/image.d.ts +19 -0
  44. package/lib/runtime/image.js +28 -2
  45. package/lib/runtime/image.test.js +43 -1
  46. package/lib/runtime/lambda.mjs +14 -3
  47. package/lib/runtime/server.mjs +14 -3
  48. package/lib/utils/deployment-build-id.d.ts +11 -0
  49. package/lib/utils/deployment-build-id.js +15 -0
  50. package/package.json +3 -3
  51. package/scripts/e2e-harness/README.md +1 -1
package/package.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "@aws-sdk/client-ssm": "^3.1141.0",
22
22
  "@aws-sdk/lib-storage": "^3.1141.0",
23
23
  "@mrgrain/jsii-struct-builder": "^0.7.64",
24
- "@next/routing": "16.3.6",
24
+ "@next/routing": "16.3.8",
25
25
  "@smithy/signature-v4": "^2.3.0",
26
26
  "@types/aws-lambda": "^8.10.163",
27
27
  "@types/debug": "^4.1.13",
@@ -51,7 +51,7 @@
51
51
  "jsii-pacmak": "^1.140.0",
52
52
  "jsii-rosetta": "~5.9.67",
53
53
  "mime-types": "^2.1.35",
54
- "next": "^16.3.6",
54
+ "next": "^16.3.8",
55
55
  "prettier": "^3.9.9",
56
56
  "projen": "^0.101.6",
57
57
  "ts-jest": "^29.4.14",
@@ -84,7 +84,7 @@
84
84
  "publishConfig": {
85
85
  "access": "public"
86
86
  },
87
- "version": "0.7.5",
87
+ "version": "0.7.6",
88
88
  "jest": {
89
89
  "coverageProvider": "v8",
90
90
  "testPathIgnorePatterns": [
@@ -449,7 +449,7 @@ cdk-nextjs rejects any build output whose runtime is not `nodejs`
449
449
 
450
450
  That is a product limitation and a deliberate one: the edge runtime is deprecated
451
451
  in Next.js, and cdk-nextjs supports Next.js 16's Node-runtime `proxy.ts` instead.
452
- 931 of next.js's 1134 e2e files are edge-free, so it barely constrains widening
452
+ 933 of next.js's 1136 e2e files are edge-free, so it barely constrains widening
453
453
  the list - and `scripts/e2e-harness/screen.mjs` applies this screen and the three
454
454
  below for you, recording the funnel in the manifest's `screening` block:
455
455