@vaadin/hilla-generator-plugin-client 24.7.0-alpha8 → 24.7.0-beta1

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,8 +1,7 @@
1
- import type Plugin from '@vaadin/hilla-generator-core/Plugin.js';
2
- import { type SourceFile } from 'typescript';
1
+ import type Plugin from "@vaadin/hilla-generator-core/Plugin.js";
2
+ import { type SourceFile } from "typescript";
3
3
  export default class ClientProcessor {
4
- #private;
5
- constructor(fileName: string, owner: Plugin);
6
- process(): SourceFile;
4
+ #private;
5
+ constructor(fileName: string, owner: Plugin);
6
+ process(): SourceFile;
7
7
  }
8
- //# sourceMappingURL=ClientProcessor.d.ts.map
@@ -2,51 +2,26 @@ import createFullyUniqueIdentifier from "@vaadin/hilla-generator-utils/createFul
2
2
  import createSourceFile from "@vaadin/hilla-generator-utils/createSourceFile.js";
3
3
  import DependencyManager from "@vaadin/hilla-generator-utils/dependencies/DependencyManager.js";
4
4
  import PathManager from "@vaadin/hilla-generator-utils/dependencies/PathManager.js";
5
- import ts, {} from "typescript";
6
- class ClientProcessor {
7
- #owner;
8
- #outputPath;
9
- constructor(fileName, owner) {
10
- this.#outputPath = new PathManager({ extension: "ts" }).createRelativePath(fileName);
11
- this.#owner = owner;
12
- }
13
- process() {
14
- this.#owner.logger.debug(`Generating ${this.#outputPath}`);
15
- const { exports, imports, paths } = new DependencyManager(new PathManager({ extension: ".js" }));
16
- const clientClassId = imports.named.add(
17
- paths.createBareModulePath("@vaadin/hilla-frontend", false),
18
- "ConnectClient"
19
- );
20
- const clientVarId = createFullyUniqueIdentifier("client");
21
- exports.default.set(clientVarId);
22
- const declaration = ts.factory.createVariableStatement(
23
- void 0,
24
- ts.factory.createVariableDeclarationList(
25
- [
26
- ts.factory.createVariableDeclaration(
27
- clientVarId,
28
- void 0,
29
- void 0,
30
- ts.factory.createNewExpression(clientClassId, void 0, [
31
- ts.factory.createObjectLiteralExpression(
32
- [
33
- ts.factory.createPropertyAssignment(
34
- ts.factory.createIdentifier("prefix"),
35
- ts.factory.createStringLiteral("connect")
36
- )
37
- ],
38
- false
39
- )
40
- ])
41
- )
42
- ],
43
- ts.NodeFlags.Const
44
- )
45
- );
46
- return createSourceFile([...imports.toCode(), declaration, ...exports.toCode()], this.#outputPath);
47
- }
5
+ import ts from "typescript";
6
+ export default class ClientProcessor {
7
+ #owner;
8
+ #outputPath;
9
+ constructor(fileName, owner) {
10
+ this.#outputPath = new PathManager({ extension: "ts" }).createRelativePath(fileName);
11
+ this.#owner = owner;
12
+ }
13
+ process() {
14
+ this.#owner.logger.debug(`Generating ${this.#outputPath}`);
15
+ const { exports, imports, paths } = new DependencyManager(new PathManager({ extension: ".js" }));
16
+ const clientClassId = imports.named.add(paths.createBareModulePath("@vaadin/hilla-frontend", false), "ConnectClient");
17
+ const clientVarId = createFullyUniqueIdentifier("client");
18
+ exports.default.set(clientVarId);
19
+ const declaration = ts.factory.createVariableStatement(undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(clientVarId, undefined, undefined, ts.factory.createNewExpression(clientClassId, undefined, [ts.factory.createObjectLiteralExpression([ts.factory.createPropertyAssignment(ts.factory.createIdentifier("prefix"), ts.factory.createStringLiteral("connect"))], false)]))], ts.NodeFlags.Const));
20
+ return createSourceFile([
21
+ ...imports.toCode(),
22
+ declaration,
23
+ ...exports.toCode()
24
+ ], this.#outputPath);
25
+ }
48
26
  }
49
- export {
50
- ClientProcessor as default
51
- };
52
- //# sourceMappingURL=ClientProcessor.js.map
27
+ //# sourceMappingURL=./ClientProcessor.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["src/ClientProcessor.ts"],
4
- "sourcesContent": ["import type Plugin from '@vaadin/hilla-generator-core/Plugin.js';\nimport createFullyUniqueIdentifier from '@vaadin/hilla-generator-utils/createFullyUniqueIdentifier.js';\nimport createSourceFile from '@vaadin/hilla-generator-utils/createSourceFile.js';\nimport DependencyManager from '@vaadin/hilla-generator-utils/dependencies/DependencyManager.js';\nimport PathManager from '@vaadin/hilla-generator-utils/dependencies/PathManager.js';\nimport ts, { type SourceFile } from 'typescript';\n\nexport default class ClientProcessor {\n readonly #owner: Plugin;\n readonly #outputPath: string;\n\n constructor(fileName: string, owner: Plugin) {\n this.#outputPath = new PathManager({ extension: 'ts' }).createRelativePath(fileName);\n this.#owner = owner;\n }\n\n process(): SourceFile {\n this.#owner.logger.debug(`Generating ${this.#outputPath}`);\n\n const { exports, imports, paths } = new DependencyManager(new PathManager({ extension: '.js' }));\n const clientClassId = imports.named.add(\n paths.createBareModulePath('@vaadin/hilla-frontend', false),\n 'ConnectClient',\n );\n\n const clientVarId = createFullyUniqueIdentifier('client');\n exports.default.set(clientVarId);\n\n const declaration = ts.factory.createVariableStatement(\n undefined,\n ts.factory.createVariableDeclarationList(\n [\n ts.factory.createVariableDeclaration(\n clientVarId,\n undefined,\n undefined,\n ts.factory.createNewExpression(clientClassId, undefined, [\n ts.factory.createObjectLiteralExpression(\n [\n ts.factory.createPropertyAssignment(\n ts.factory.createIdentifier('prefix'),\n ts.factory.createStringLiteral('connect'),\n ),\n ],\n false,\n ),\n ]),\n ),\n ],\n ts.NodeFlags.Const,\n ),\n );\n\n return createSourceFile([...imports.toCode(), declaration, ...exports.toCode()], this.#outputPath);\n }\n}\n"],
5
- "mappings": "AACA,OAAO,iCAAiC;AACxC,OAAO,sBAAsB;AAC7B,OAAO,uBAAuB;AAC9B,OAAO,iBAAiB;AACxB,OAAO,YAA6B;AAEpC,MAAO,gBAA8B;AAAA,EAC1B;AAAA,EACA;AAAA,EAET,YAAY,UAAkB,OAAe;AAC3C,SAAK,cAAc,IAAI,YAAY,EAAE,WAAW,KAAK,CAAC,EAAE,mBAAmB,QAAQ;AACnF,SAAK,SAAS;AAAA,EAChB;AAAA,EAEA,UAAsB;AACpB,SAAK,OAAO,OAAO,MAAM,cAAc,KAAK,WAAW,EAAE;AAEzD,UAAM,EAAE,SAAS,SAAS,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,kBAAkB,IAAI,YAAY,EAAE,WAAW,MAAO;EAC9F,MAAM,gBAAgB,QAAQ,MAAM,IAClC,MAAM,qBAAqB,0BAA0B,MAAM,EAC3D,gBACD;EAED,MAAM,cAAc,4BAA4B,SAAS;AACzD,UAAQ,QAAQ,IAAI,YAAY;EAEhC,MAAM,cAAc,GAAG,QAAQ,wBAC7B,WACA,GAAG,QAAQ,8BACT,CACE,GAAG,QAAQ,0BACT,aACA,WACA,WACA,GAAG,QAAQ,oBAAoB,eAAe,WAAW,CACvD,GAAG,QAAQ,8BACT,CACE,GAAG,QAAQ,yBACT,GAAG,QAAQ,iBAAiB,SAAS,EACrC,GAAG,QAAQ,oBAAoB,UAAU,CAC1C,AACF,GACD,MACD,AACF,EAAC,CACH,AACF,GACD,GAAG,UAAU,MACd,CACF;AAED,SAAO,iBAAiB;GAAC,GAAG,QAAQ,QAAQ;GAAE;GAAa,GAAG,QAAQ,QAAQ;EAAC,GAAE,KAAKA,YAAY;CACnG;AACF","names":["#owner","#outputPath","fileName: string","owner: Plugin"],"sources":["/opt/agent/work/1af72d8adc613024/hilla/packages/ts/generator-plugin-client/src/ClientProcessor.ts"],"sourcesContent":["import type Plugin from '@vaadin/hilla-generator-core/Plugin.js';\nimport createFullyUniqueIdentifier from '@vaadin/hilla-generator-utils/createFullyUniqueIdentifier.js';\nimport createSourceFile from '@vaadin/hilla-generator-utils/createSourceFile.js';\nimport DependencyManager from '@vaadin/hilla-generator-utils/dependencies/DependencyManager.js';\nimport PathManager from '@vaadin/hilla-generator-utils/dependencies/PathManager.js';\nimport ts, { type SourceFile } from 'typescript';\n\nexport default class ClientProcessor {\n readonly #owner: Plugin;\n readonly #outputPath: string;\n\n constructor(fileName: string, owner: Plugin) {\n this.#outputPath = new PathManager({ extension: 'ts' }).createRelativePath(fileName);\n this.#owner = owner;\n }\n\n process(): SourceFile {\n this.#owner.logger.debug(`Generating ${this.#outputPath}`);\n\n const { exports, imports, paths } = new DependencyManager(new PathManager({ extension: '.js' }));\n const clientClassId = imports.named.add(\n paths.createBareModulePath('@vaadin/hilla-frontend', false),\n 'ConnectClient',\n );\n\n const clientVarId = createFullyUniqueIdentifier('client');\n exports.default.set(clientVarId);\n\n const declaration = ts.factory.createVariableStatement(\n undefined,\n ts.factory.createVariableDeclarationList(\n [\n ts.factory.createVariableDeclaration(\n clientVarId,\n undefined,\n undefined,\n ts.factory.createNewExpression(clientClassId, undefined, [\n ts.factory.createObjectLiteralExpression(\n [\n ts.factory.createPropertyAssignment(\n ts.factory.createIdentifier('prefix'),\n ts.factory.createStringLiteral('connect'),\n ),\n ],\n false,\n ),\n ]),\n ),\n ],\n ts.NodeFlags.Const,\n ),\n );\n\n return createSourceFile([...imports.toCode(), declaration, ...exports.toCode()], this.#outputPath);\n }\n}\n"],"version":3}
package/index.d.ts CHANGED
@@ -1,12 +1,11 @@
1
- import Plugin from '@vaadin/hilla-generator-core/Plugin.js';
2
- import type SharedStorage from '@vaadin/hilla-generator-core/SharedStorage.js';
1
+ import Plugin from "@vaadin/hilla-generator-core/Plugin.js";
2
+ import type { SharedStorage } from "@vaadin/hilla-generator-core/SharedStorage.js";
3
3
  export default class ClientPlugin extends Plugin {
4
- #private;
5
- static readonly CLIENT_FILE_NAME = "connect-client.default";
6
- static readonly CUSTOM_CLIENT_FILE_NAME = "../connect-client";
7
- static getClientFileName(path?: string): Promise<string>;
8
- ['constructor']: typeof ClientPlugin;
9
- get path(): string;
10
- execute({ outputDir, sources }: SharedStorage): Promise<void>;
4
+ #private;
5
+ static readonly CLIENT_FILE_NAME = "connect-client.default";
6
+ static readonly CUSTOM_CLIENT_FILE_NAME = "../connect-client";
7
+ static getClientFileName(path?: string): Promise<string>;
8
+ ["constructor"]: typeof ClientPlugin;
9
+ get path(): string;
10
+ execute({ outputDir, sources }: SharedStorage): Promise<void>;
11
11
  }
12
- //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -2,31 +2,28 @@ import { open } from "fs/promises";
2
2
  import { fileURLToPath } from "url";
3
3
  import Plugin from "@vaadin/hilla-generator-core/Plugin.js";
4
4
  import ClientProcessor from "./ClientProcessor.js";
5
- class ClientPlugin extends Plugin {
6
- static CLIENT_FILE_NAME = "connect-client.default";
7
- static CUSTOM_CLIENT_FILE_NAME = "../connect-client";
8
- static async getClientFileName(path) {
9
- return await ClientPlugin.#checkForCustomClientFile(path) ? ClientPlugin.CUSTOM_CLIENT_FILE_NAME : ClientPlugin.CLIENT_FILE_NAME;
10
- }
11
- static async #checkForCustomClientFile(path) {
12
- const dir = path?.startsWith("file:") ? fileURLToPath(path) : path;
13
- try {
14
- return !!(dir && await open(`${dir}/${ClientPlugin.CUSTOM_CLIENT_FILE_NAME}.ts`, "r"));
15
- } catch (e) {
16
- return false;
17
- }
18
- }
19
- get path() {
20
- return import.meta.url;
21
- }
22
- async execute({ outputDir, sources }) {
23
- if (!(outputDir && await ClientPlugin.#checkForCustomClientFile(outputDir))) {
24
- const clientFile = new ClientProcessor(this.constructor.CLIENT_FILE_NAME, this).process();
25
- sources.push(clientFile);
26
- }
27
- }
5
+ export default class ClientPlugin extends Plugin {
6
+ static CLIENT_FILE_NAME = "connect-client.default";
7
+ static CUSTOM_CLIENT_FILE_NAME = "../connect-client";
8
+ static async getClientFileName(path) {
9
+ return await ClientPlugin.#checkForCustomClientFile(path) ? ClientPlugin.CUSTOM_CLIENT_FILE_NAME : ClientPlugin.CLIENT_FILE_NAME;
10
+ }
11
+ static async #checkForCustomClientFile(path) {
12
+ const dir = path?.startsWith("file:") ? fileURLToPath(path) : path;
13
+ try {
14
+ return !!(dir && await open(`${dir}/${ClientPlugin.CUSTOM_CLIENT_FILE_NAME}.ts`, "r"));
15
+ } catch {
16
+ return false;
17
+ }
18
+ }
19
+ get path() {
20
+ return import.meta.url;
21
+ }
22
+ async execute({ outputDir, sources }) {
23
+ if (!(outputDir && await ClientPlugin.#checkForCustomClientFile(outputDir))) {
24
+ const clientFile = new ClientProcessor(this.constructor.CLIENT_FILE_NAME, this).process();
25
+ sources.push(clientFile);
26
+ }
27
+ }
28
28
  }
29
- export {
30
- ClientPlugin as default
31
- };
32
- //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=./index.js.map
package/index.js.map CHANGED
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["src/index.ts"],
4
- "sourcesContent": ["import { open } from 'fs/promises';\nimport { fileURLToPath } from 'url';\nimport Plugin from '@vaadin/hilla-generator-core/Plugin.js';\nimport type SharedStorage from '@vaadin/hilla-generator-core/SharedStorage.js';\nimport ClientProcessor from './ClientProcessor.js';\n\nexport default class ClientPlugin extends Plugin {\n static readonly CLIENT_FILE_NAME = 'connect-client.default';\n static readonly CUSTOM_CLIENT_FILE_NAME = '../connect-client';\n\n static async getClientFileName(path?: string): Promise<string> {\n return (await ClientPlugin.#checkForCustomClientFile(path))\n ? ClientPlugin.CUSTOM_CLIENT_FILE_NAME\n : ClientPlugin.CLIENT_FILE_NAME;\n }\n\n static async #checkForCustomClientFile(path?: string): Promise<boolean> {\n const dir = path?.startsWith('file:') ? fileURLToPath(path) : path;\n\n try {\n return !!(dir && (await open(`${dir}/${ClientPlugin.CUSTOM_CLIENT_FILE_NAME}.ts`, 'r')));\n } catch (e) {\n return false;\n }\n }\n\n declare ['constructor']: typeof ClientPlugin;\n\n override get path(): string {\n return import.meta.url;\n }\n\n override async execute({ outputDir, sources }: SharedStorage): Promise<void> {\n // the client file is created only if a custom client file is not found\n if (!(outputDir && (await ClientPlugin.#checkForCustomClientFile(outputDir)))) {\n const clientFile = new ClientProcessor(this.constructor.CLIENT_FILE_NAME, this).process();\n sources.push(clientFile);\n }\n }\n}\n"],
5
- "mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAC9B,OAAO,YAAY;AAEnB,OAAO,qBAAqB;AAE5B,MAAO,qBAAmC,OAAO;AAAA,EAC/C,OAAgB,mBAAmB;AAAA,EACnC,OAAgB,0BAA0B;AAAA,EAE1C,aAAa,kBAAkB,MAAgC;AA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,MAAM,aAAaC,0BAA0B,UAAU,GAAI;GAC7E,MAAM,aAAa,IAAI,gBAAgB,KAAK,YAAY,kBAAkB,MAAM,SAAS;AACzF,WAAQ,KAAK,WAAW;EACzB;CACF;AACF","names":["path?: string","#checkForCustomClientFile"],"sources":["/opt/agent/work/1af72d8adc613024/hilla/packages/ts/generator-plugin-client/src/index.ts"],"sourcesContent":["import { open } from 'fs/promises';\nimport { fileURLToPath } from 'url';\nimport Plugin from '@vaadin/hilla-generator-core/Plugin.js';\nimport type { SharedStorage } from '@vaadin/hilla-generator-core/SharedStorage.js';\nimport ClientProcessor from './ClientProcessor.js';\n\nexport default class ClientPlugin extends Plugin {\n static readonly CLIENT_FILE_NAME = 'connect-client.default';\n static readonly CUSTOM_CLIENT_FILE_NAME = '../connect-client';\n\n static async getClientFileName(path?: string): Promise<string> {\n return (await ClientPlugin.#checkForCustomClientFile(path))\n ? ClientPlugin.CUSTOM_CLIENT_FILE_NAME\n : ClientPlugin.CLIENT_FILE_NAME;\n }\n\n static async #checkForCustomClientFile(path?: string): Promise<boolean> {\n const dir = path?.startsWith('file:') ? fileURLToPath(path) : path;\n\n try {\n return !!(dir && (await open(`${dir}/${ClientPlugin.CUSTOM_CLIENT_FILE_NAME}.ts`, 'r')));\n } catch {\n return false;\n }\n }\n\n declare ['constructor']: typeof ClientPlugin;\n\n override get path(): string {\n return import.meta.url;\n }\n\n override async execute({ outputDir, sources }: SharedStorage): Promise<void> {\n // the client file is created only if a custom client file is not found\n if (!(outputDir && (await ClientPlugin.#checkForCustomClientFile(outputDir)))) {\n const clientFile = new ClientProcessor(this.constructor.CLIENT_FILE_NAME, this).process();\n sources.push(clientFile);\n }\n }\n}\n"],"version":3}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/hilla-generator-plugin-client",
3
- "version": "24.7.0-alpha8",
3
+ "version": "24.7.0-beta1",
4
4
  "description": "A Hilla TypeScript Generator plugin to generate default client implementation",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -9,15 +9,13 @@
9
9
  },
10
10
  "scripts": {
11
11
  "clean:build": "git clean -fx . -e .vite -e node_modules",
12
- "build": "concurrently npm:build:*",
13
- "build:esbuild": "tsx ../../../scripts/build.ts",
14
- "build:dts": "tsc --isolatedModules -p tsconfig.build.json",
15
- "build:copy": "cd src && copyfiles **/*.d.ts ..",
12
+ "build": "tsx ../../../scripts/fast-build.ts",
16
13
  "lint": "eslint src test",
17
14
  "lint:fix": "eslint src test --fix",
18
- "test": "mocha test/**/*.spec.ts --config ../../../.mocharc.cjs",
19
- "test:update": "npm test -- --update",
20
- "test:coverage": "c8 --experimental-monocart -c ../../../.c8rc.json npm test",
15
+ "test": "vitest --run",
16
+ "test:coverage": "vitest --run --coverage",
17
+ "test:update": "vitest --run --update",
18
+ "test:watch": "vitest",
21
19
  "typecheck": "tsc --noEmit"
22
20
  },
23
21
  "exports": {
@@ -51,26 +49,8 @@
51
49
  "access": "public"
52
50
  },
53
51
  "dependencies": {
54
- "@vaadin/hilla-generator-core": "24.7.0-alpha8",
55
- "@vaadin/hilla-generator-utils": "24.7.0-alpha8",
52
+ "@vaadin/hilla-generator-core": "24.7.0-beta1",
53
+ "@vaadin/hilla-generator-utils": "24.7.0-beta1",
56
54
  "typescript": "5.7.3"
57
- },
58
- "devDependencies": {
59
- "@types/chai": "^4.3.20",
60
- "@types/mocha": "^10.0.10",
61
- "@types/node": "^20.17.12",
62
- "@types/sinon": "^10.0.20",
63
- "@types/sinon-chai": "^3.2.12",
64
- "@vaadin/hilla-generator-core": "24.7.0-alpha8",
65
- "c8": "^10.1.3",
66
- "chai": "^4.5.0",
67
- "concurrently": "^9.1.2",
68
- "copyfiles": "^2.4.1",
69
- "mocha": "^11.1.0",
70
- "monocart-coverage-reports": "^2.11.5",
71
- "pino": "^9.6.0",
72
- "sinon": "^16.1.3",
73
- "sinon-chai": "^3.7.0",
74
- "type-fest": "^4.32.0"
75
55
  }
76
56
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"ClientProcessor.d.ts","sourceRoot":"","sources":["src/ClientProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAKjE,OAAW,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,CAAC,OAAO,OAAO,eAAe;;gBAItB,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAK3C,OAAO,IAAI,UAAU;CAuCtB"}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,MAAM,MAAM,wCAAwC,CAAC;AAC5D,OAAO,KAAK,aAAa,MAAM,+CAA+C,CAAC;AAG/E,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,MAAM;;IAC9C,MAAM,CAAC,QAAQ,CAAC,gBAAgB,4BAA4B;IAC5D,MAAM,CAAC,QAAQ,CAAC,uBAAuB,uBAAuB;WAEjD,iBAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgBtD,CAAC,aAAa,CAAC,EAAE,OAAO,YAAY,CAAC;IAE7C,IAAa,IAAI,IAAI,MAAM,CAE1B;IAEc,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAO7E"}