@solcreek/adapter-creek 0.1.4 → 0.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.
@@ -1,2 +1,2 @@
1
- export { default } from "@solcreek/adapter-core/cache-handler";
1
+ export { default } from "@solcreek/adapter-next-core/cache-handler";
2
2
  //# sourceMappingURL=cache-handler.d.ts.map
@@ -1,10 +1,10 @@
1
1
  // Re-export the shared in-memory Next.js ISR cache handler from
2
- // @solcreek/adapter-core. The implementation now lives there so both
3
- // adapter-creek and adapter-creekd can share a single tested copy.
2
+ // @solcreek/adapter-next-core. The implementation lives there so
3
+ // both adapter-creek and adapter-creekd share a single tested copy.
4
4
  //
5
5
  // This file exists for backwards compatibility: users who set
6
6
  // `cacheHandler: require.resolve("@solcreek/adapter-creek/cache-handler")`
7
7
  // in their next.config continue to work without changes. New users
8
8
  // can wire either path; both resolve to the same module at runtime.
9
- export { default } from "@solcreek/adapter-core/cache-handler";
9
+ export { default } from "@solcreek/adapter-next-core/cache-handler";
10
10
  //# sourceMappingURL=cache-handler.js.map
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import * as path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
3
  import { copyFileSync, existsSync } from "node:fs";
4
- import { applyBaseModifyConfig } from "@solcreek/adapter-core";
4
+ import { applyBaseModifyConfig } from "@solcreek/adapter-next-core";
5
5
  import { handleBuild } from "./build.js";
6
- // Dev-fallback path to the cache handler shipped by @solcreek/adapter-core.
6
+ // Dev-fallback path to the cache handler shipped by @solcreek/adapter-next-core.
7
7
  // applyBaseModifyConfig prefers the node_modules-installed copy when one
8
8
  // exists (the production path); this resolves the package's own bundled
9
9
  // copy as a last resort for the rare case where the adapter is used
10
10
  // without `npm install`ing it.
11
- const coreEntryUrl = new URL("../node_modules/@solcreek/adapter-core/dist/cache-handler.js", import.meta.url);
11
+ const coreEntryUrl = new URL("../node_modules/@solcreek/adapter-next-core/dist/cache-handler.js", import.meta.url);
12
12
  const fallbackCacheHandlerPath = existsSync(fileURLToPath(coreEntryUrl))
13
13
  ? fileURLToPath(coreEntryUrl)
14
- : path.join(process.cwd(), "node_modules", "@solcreek", "adapter-core", "dist", "cache-handler.js");
14
+ : path.join(process.cwd(), "node_modules", "@solcreek", "adapter-next-core", "dist", "cache-handler.js");
15
15
  function mirrorCacheHandlerIntoProject(cacheHandlerPath) {
16
16
  if (!existsSync(cacheHandlerPath))
17
17
  return cacheHandlerPath;
@@ -3026,9 +3026,6 @@ function __creekOriginalFetchArgs(input, init) {
3026
3026
  }
3027
3027
  delete fetchInit.next;
3028
3028
  delete fetchInit.cache;
3029
- try {
3030
- return [new Request(input, fetchInit), undefined];
3031
- } catch {}
3032
3029
  return [input, fetchInit];
3033
3030
  }
3034
3031
  return [input, init];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcreek/adapter-creek",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Next.js deployment adapter for Creek (Cloudflare Workers)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,6 +46,7 @@
46
46
  "dependencies": {
47
47
  "@next/routing": "16.2.3",
48
48
  "@solcreek/adapter-core": "^0.2.0",
49
+ "@solcreek/adapter-next-core": "^0.1.0",
49
50
  "sql.js": "^1.14.1",
50
51
  "wrangler": "^4.82.2"
51
52
  },