@akanjs/devkit 3.1.0-rc.3 → 3.1.0-rc.4
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.
|
@@ -46,6 +46,8 @@ describe("resolveSsrPageEntries", () => {
|
|
|
46
46
|
expect(generatedSource).toContain("export const NotFound = userLayout.NotFound ?? inheritedLayout.NotFound;");
|
|
47
47
|
expect(generatedSource).toContain("export const Error = userLayout.Error ?? inheritedLayout.Error;");
|
|
48
48
|
expect(generatedSource).toContain("export const pageConfig = userLayout.pageConfig ?? inheritedLayout.pageConfig;");
|
|
49
|
+
// The ancestor root is its own level of the stack, so inheriting its loading would nest it inside itself.
|
|
50
|
+
expect(generatedSource).toContain("export const Loading = userLayout.Loading;");
|
|
49
51
|
expect(generatedSource).toContain(
|
|
50
52
|
"<UserLayout params={params} searchParams={searchParams}>{children}</UserLayout>",
|
|
51
53
|
);
|
|
@@ -201,6 +201,7 @@ async function writeGeneratedRootLayoutFile(opts: {
|
|
|
201
201
|
export const NotFound = userLayout.NotFound ?? inheritedLayout.NotFound;
|
|
202
202
|
export const Error = userLayout.Error ?? inheritedLayout.Error;
|
|
203
203
|
export const pageConfig = userLayout.pageConfig ?? inheritedLayout.pageConfig;
|
|
204
|
+
export const Loading = userLayout.Loading;
|
|
204
205
|
|
|
205
206
|
${layoutSignature}({ children, params, searchParams }: LayoutProps) {
|
|
206
207
|
${layoutBinding} return `;
|
package/mobile/nativeApp.test.ts
CHANGED
|
@@ -151,7 +151,7 @@ describe("NativeApp", () => {
|
|
|
151
151
|
|
|
152
152
|
describe("the public env a build inlined, recorded in its bundle.json", () => {
|
|
153
153
|
const publicEnv = { AKAN_PUBLIC_ENV: "main", AKAN_PUBLIC_SERVE_DOMAIN: "akamir.com" };
|
|
154
|
-
const building = async (inlined: Record<string, string>, updates:
|
|
154
|
+
const building = async (inlined: Record<string, string>, updates: AkanNativeTarget["updates"]) => {
|
|
155
155
|
const root = await makeTempRoot();
|
|
156
156
|
const warned: string[] = [];
|
|
157
157
|
const app = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.1.0-rc.
|
|
3
|
+
"version": "3.1.0-rc.4",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@earendil-works/pi-tui": "0.86.1",
|
|
49
49
|
"@inquirer/prompts": "^8.4.3",
|
|
50
50
|
"@tailwindcss/node": "^4.3.0",
|
|
51
|
-
"akanjs": "3.1.0-rc.
|
|
51
|
+
"akanjs": "3.1.0-rc.4",
|
|
52
52
|
"chalk": "^5.6.2",
|
|
53
53
|
"commander": "^14.0.3",
|
|
54
54
|
"dayjs": "^1.11.20",
|