@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 +1 -1
- package/dist/config.js.map +1 -1
- package/dist/routes/call.d.ts +1 -1
- package/dist/routes/call.d.ts.map +1 -1
- package/dist/routes/call.js +1 -1
- package/dist/routes/call.js.map +1 -1
- package/dist/routes/rest.d.ts +6 -6
- package/dist/routes/rest.d.ts.map +1 -1
- package/dist/routes/rest.js +6 -6
- package/dist/routes/rest.js.map +1 -1
- package/dist/routes/session.d.ts +1 -1
- package/dist/routes/session.d.ts.map +1 -1
- package/dist/routes/session.js +1 -1
- package/dist/routes/session.js.map +1 -1
- package/package.json +4 -3
- package/src/config.ts +1 -1
- package/src/routes/call.ts +1 -1
- package/src/routes/rest.ts +6 -6
- package/src/routes/session.ts +1 -1
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/
|
|
3
|
+
import { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
4
4
|
export function withFougere(config = {}) {
|
|
5
5
|
const userWebpack = config.webpack;
|
|
6
6
|
return {
|
package/dist/config.js.map
CHANGED
|
@@ -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,
|
|
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,mBAAmB,CAAC;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``` 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 {
|
|
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,
|
|
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"}
|
package/dist/routes/call.js
CHANGED
|
@@ -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 {
|
|
6
|
+
export { call as POST } from '@fougere/app/web';
|
|
7
7
|
//# sourceMappingURL=call.js.map
|
package/dist/routes/call.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../src/routes/call.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,
|
|
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"}
|
package/dist/routes/rest.d.ts
CHANGED
|
@@ -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 {
|
|
7
|
-
export declare const GET: typeof
|
|
8
|
-
export declare const POST: typeof
|
|
9
|
-
export declare const PUT: typeof
|
|
10
|
-
export declare const PATCH: typeof
|
|
11
|
-
export declare const DELETE: typeof
|
|
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,
|
|
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"}
|
package/dist/routes/rest.js
CHANGED
|
@@ -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 {
|
|
7
|
-
export const GET =
|
|
8
|
-
export const POST =
|
|
9
|
-
export const PUT =
|
|
10
|
-
export const PATCH =
|
|
11
|
-
export const DELETE =
|
|
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
|
package/dist/routes/rest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.js","sourceRoot":"","sources":["../../src/routes/rest.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,
|
|
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"}
|
package/dist/routes/session.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,
|
|
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"}
|
package/dist/routes/session.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/routes/session.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,OAAO,EAAE,
|
|
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.
|
|
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/
|
|
52
|
-
"@fougere/
|
|
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/
|
|
5
|
+
import { RUNTIME_PACKAGES } from '@fougere/compiler';
|
|
6
6
|
|
|
7
7
|
export function withFougere(config: NextConfig = {}): NextConfig {
|
|
8
8
|
const userWebpack = config.webpack;
|
package/src/routes/call.ts
CHANGED
|
@@ -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 {
|
|
6
|
+
export { call as POST } from '@fougere/app/web';
|
package/src/routes/rest.ts
CHANGED
|
@@ -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 {
|
|
6
|
+
import { rest } from '@fougere/app/web';
|
|
7
7
|
|
|
8
|
-
export const GET =
|
|
9
|
-
export const POST =
|
|
10
|
-
export const PUT =
|
|
11
|
-
export const PATCH =
|
|
12
|
-
export const DELETE =
|
|
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;
|
package/src/routes/session.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** ```ts // app/%5Ffougere/session/route.ts export { GET } from '@fougere/next/session'; ``` */
|
|
2
|
-
export {
|
|
2
|
+
export { session as GET } from '@fougere/app/web';
|