@fougere/next 0.8.3-alpha.0 → 0.9.0-alpha.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.
package/dist/config.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /** `withFougere(config)` — what Next has to be told so a Fougere app builds. */
2
2
  import TerserPlugin from 'terser-webpack-plugin';
3
- import { RUNTIME_PACKAGES } from '@fougere/core/node';
3
+ import { RUNTIME_PACKAGES } from '@fougere/compiler';
4
4
  export function withFougere(config = {}) {
5
5
  const userWebpack = config.webpack;
6
6
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAGjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,UAAU,WAAW,CAAC,MAAM,GAAe,EAAE;IACjD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;IAEnC,OAAO;QACL,GAAG,MAAM;QACT,qDAAqD;QACrD,sBAAsB,EAAE;YACtB,mFAAmF;YACnF,yFAAyF;YACzF,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,sBAAsB,IAAI,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE,eAAe,CAAC,CAAC;SAC7F;QACD,OAAO,EAAE,CAAC,aAAa,EAAE,OAAO,EAAE,EAAE;YAClC,4EAA4E;YAC5E,gDAAgD;YAChD,MAAM,IAAI,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;YAE/E,IAAI,CAAC,YAAY,KAAK,EAAE,CAAC;YACzB,+EAA+E;YAC/E,6EAA6E;YAC7E,gFAAgF;YAChF,gFAAgF;YAChF,yDAAyD;YACzD,MAAM,YAAY,GAAG,CAAC,CAAU,EAA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E;YAC/E,6EAA6E;YAC7E,gFAAgF;YAChF,gFAAgF;YAChF,yDAAyD;YACzD,MAAM,YAAY,GAAG,CAAC,CAAU,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;YACjF,IAAI,CAAC,YAAY,CAAC,SAAS,GAAG;gBAC5B,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;gBAC/E,2EAA2E;gBAC3E,0EAA0E;gBAC1E,+DAA+D;gBAC/D,IAAI,YAAY,CAAC,EAAE,aAAa,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,CAAC;aAC/D,CAAC;YAEF,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -3,5 +3,5 @@
3
3
  * ``` The folder is `%5Ffougere`, not `_fougere`: the App Router treats a leading underscore as a
4
4
  * PRIVATE folder and excludes it from routing, and `%5F` is Next's own escape for a literal one.
5
5
  */
6
- export { fougereCall as POST } from '@fougere/app/web';
6
+ export { call as POST } from '@fougere/app/web';
7
7
  //# sourceMappingURL=call.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/routes/call.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/routes/call.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
@@ -3,5 +3,5 @@
3
3
  * ``` The folder is `%5Ffougere`, not `_fougere`: the App Router treats a leading underscore as a
4
4
  * PRIVATE folder and excludes it from routing, and `%5F` is Next's own escape for a literal one.
5
5
  */
6
- export { fougereCall as POST } from '@fougere/app/web';
6
+ export { call as POST } from '@fougere/app/web';
7
7
  //# sourceMappingURL=call.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/routes/call.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/routes/call.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
@@ -3,10 +3,10 @@
3
3
  * '@fougere/next/rest'; ``` Five names for one handler, because Next decides which verbs a route
4
4
  * accepts by which names it exports.
5
5
  */
6
- import { fougereRest } from '@fougere/app/web';
7
- export declare const GET: typeof fougereRest;
8
- export declare const POST: typeof fougereRest;
9
- export declare const PUT: typeof fougereRest;
10
- export declare const PATCH: typeof fougereRest;
11
- export declare const DELETE: typeof fougereRest;
6
+ import { rest } from '@fougere/app/web';
7
+ export declare const GET: typeof rest;
8
+ export declare const POST: typeof rest;
9
+ export declare const PUT: typeof rest;
10
+ export declare const PATCH: typeof rest;
11
+ export declare const DELETE: typeof rest;
12
12
  //# sourceMappingURL=rest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/routes/rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,GAAG,oBAAc,CAAC;AAC/B,eAAO,MAAM,IAAI,oBAAc,CAAC;AAChC,eAAO,MAAM,GAAG,oBAAc,CAAC;AAC/B,eAAO,MAAM,KAAK,oBAAc,CAAC;AACjC,eAAO,MAAM,MAAM,oBAAc,CAAC"}
1
+ {"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/routes/rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,eAAO,MAAM,GAAG,aAAO,CAAC;AACxB,eAAO,MAAM,IAAI,aAAO,CAAC;AACzB,eAAO,MAAM,GAAG,aAAO,CAAC;AACxB,eAAO,MAAM,KAAK,aAAO,CAAC;AAC1B,eAAO,MAAM,MAAM,aAAO,CAAC"}
@@ -3,10 +3,10 @@
3
3
  * '@fougere/next/rest'; ``` Five names for one handler, because Next decides which verbs a route
4
4
  * accepts by which names it exports.
5
5
  */
6
- import { fougereRest } from '@fougere/app/web';
7
- export const GET = fougereRest;
8
- export const POST = fougereRest;
9
- export const PUT = fougereRest;
10
- export const PATCH = fougereRest;
11
- export const DELETE = fougereRest;
6
+ import { rest } from '@fougere/app/web';
7
+ export const GET = rest;
8
+ export const POST = rest;
9
+ export const PUT = rest;
10
+ export const PATCH = rest;
11
+ export const DELETE = rest;
12
12
  //# sourceMappingURL=rest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rest.js","sourceRoot":"","sources":["../../src/routes/rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,CAAC,MAAM,GAAG,GAAG,WAAW,CAAC;AAC/B,MAAM,CAAC,MAAM,IAAI,GAAG,WAAW,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,WAAW,CAAC;AAC/B,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;AACjC,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC"}
1
+ {"version":3,"file":"rest.js","sourceRoot":"","sources":["../../src/routes/rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC;AACxB,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC;AACzB,MAAM,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC;AACxB,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC;AAC1B,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** ```ts // app/%5Ffougere/session/route.ts export { GET } from '@fougere/next/session'; ``` */
2
- export { fougereSession as GET } from '@fougere/app/web';
2
+ export { session as GET } from '@fougere/app/web';
3
3
  //# sourceMappingURL=session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,cAAc,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  /** ```ts // app/%5Ffougere/session/route.ts export { GET } from '@fougere/next/session'; ``` */
2
- export { fougereSession as GET } from '@fougere/app/web';
2
+ export { session as GET } from '@fougere/app/web';
3
3
  //# sourceMappingURL=session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,cAAc,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fougere/next",
3
- "version": "0.8.3-alpha.0",
3
+ "version": "0.9.0-alpha.0",
4
4
  "description": "The Next.js adapter: mounting, and the one import that is genuinely Next.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -48,8 +48,9 @@
48
48
  ],
49
49
  "dependencies": {
50
50
  "terser-webpack-plugin": "^5.3.14",
51
- "@fougere/app": "0.8.3-alpha.0",
52
- "@fougere/core": "0.8.3-alpha.0"
51
+ "@fougere/core": "0.9.0-alpha.0",
52
+ "@fougere/app": "0.9.0-alpha.0",
53
+ "@fougere/compiler": "0.9.0-alpha.0"
53
54
  },
54
55
  "devDependencies": {
55
56
  "next": "^15.5.7",
package/src/config.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import TerserPlugin from 'terser-webpack-plugin';
3
3
  import type { NextConfig } from 'next';
4
4
 
5
- import { RUNTIME_PACKAGES } from '@fougere/core/node';
5
+ import { RUNTIME_PACKAGES } from '@fougere/compiler';
6
6
 
7
7
  export function withFougere(config: NextConfig = {}): NextConfig {
8
8
  const userWebpack = config.webpack;
@@ -3,4 +3,4 @@
3
3
  * ``` The folder is `%5Ffougere`, not `_fougere`: the App Router treats a leading underscore as a
4
4
  * PRIVATE folder and excludes it from routing, and `%5F` is Next's own escape for a literal one.
5
5
  */
6
- export { fougereCall as POST } from '@fougere/app/web';
6
+ export { call as POST } from '@fougere/app/web';
@@ -3,10 +3,10 @@
3
3
  * '@fougere/next/rest'; ``` Five names for one handler, because Next decides which verbs a route
4
4
  * accepts by which names it exports.
5
5
  */
6
- import { fougereRest } from '@fougere/app/web';
6
+ import { rest } from '@fougere/app/web';
7
7
 
8
- export const GET = fougereRest;
9
- export const POST = fougereRest;
10
- export const PUT = fougereRest;
11
- export const PATCH = fougereRest;
12
- export const DELETE = fougereRest;
8
+ export const GET = rest;
9
+ export const POST = rest;
10
+ export const PUT = rest;
11
+ export const PATCH = rest;
12
+ export const DELETE = rest;
@@ -1,2 +1,2 @@
1
1
  /** ```ts // app/%5Ffougere/session/route.ts export { GET } from '@fougere/next/session'; ``` */
2
- export { fougereSession as GET } from '@fougere/app/web';
2
+ export { session as GET } from '@fougere/app/web';