@akanjs/devkit 2.2.2 → 2.2.3-rc.1

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.
@@ -74,7 +74,9 @@ describe("resolveSsrPageEntries", () => {
74
74
  expect(generatedSource).toContain("<System.Provider");
75
75
  expect(generatedSource).toContain("theme={userLayout.theme ?? inheritedLayout.theme}");
76
76
  expect(generatedSource).toContain('import { allDictionary } from "../dict/useDict.ts";');
77
- expect(generatedSource).toContain("dictionary={allDictionary[params.lang]}");
77
+ expect(generatedSource).toContain(
78
+ 'allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}',
79
+ );
78
80
  expect(generatedSource).not.toContain("getAllDictionary");
79
81
  expect(generatedSource).not.toContain("// export default function GeneratedLayout");
80
82
 
@@ -196,7 +196,7 @@ export default function GeneratedLayout({ children, params, searchParams }: Layo
196
196
  gaTrackingId={userLayout.gaTrackingId ?? inheritedLayout.gaTrackingId}
197
197
  layoutStyle={userLayout.layoutStyle ?? inheritedLayout.layoutStyle}
198
198
  reconnect={userLayout.reconnect ?? inheritedLayout.reconnect ?? false}
199
- dictionary={allDictionary[params.lang]}
199
+ allDictionary={process.env.AKAN_PUBLIC_RENDER_ENV === "ssr" ? allDictionary : undefined}
200
200
  >
201
201
  <UserLayout params={params} searchParams={searchParams}>{children}</UserLayout>
202
202
  </System.Provider>
package/cloud/cloudApi.ts CHANGED
@@ -67,7 +67,6 @@ export class CloudApi {
67
67
  }
68
68
 
69
69
  async uploadEnv(devProjectId: string, file: File): Promise<boolean> {
70
- await this.#ensureAccessTokenLive();
71
70
  const formData = new FormData();
72
71
  formData.append("devProjectId", devProjectId);
73
72
  formData.append("file", file);
@@ -75,7 +74,6 @@ export class CloudApi {
75
74
  return data;
76
75
  }
77
76
  async downloadEnv(devProjectId: string): Promise<unknown> {
78
- await this.#ensureAccessTokenLive();
79
77
  const localPath = `${this.#workspace.workspaceRoot}/local/env.tar`;
80
78
  await this.#api.getFile(`/downloadEnv/${devProjectId}`, localPath);
81
79
  return localPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/devkit",
3
- "version": "2.2.2",
3
+ "version": "2.2.3-rc.1",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,7 +32,7 @@
32
32
  "@langchain/openai": "^1.4.6",
33
33
  "@tailwindcss/node": "^4.3.0",
34
34
  "@trapezedev/project": "^7.1.4",
35
- "akanjs": "2.2.2",
35
+ "akanjs": "2.2.3-rc.1",
36
36
  "chalk": "^5.6.2",
37
37
  "commander": "^14.0.3",
38
38
  "daisyui": "^5.5.20",