@atls/code-service 2.0.9 → 2.1.10

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/CHANGELOG.md ADDED
@@ -0,0 +1,133 @@
1
+
2
+
3
+ ## [2.1.10](https://github.com/atls/raijin/compare/@atls/code-service@2.1.9...@atls/code-service@2.1.10) (2025-08-04)
4
+
5
+
6
+ ### Features
7
+
8
+
9
+ * **common:** skiplibcheck ([765249d](https://github.com/atls/raijin/commit/765249d12ec7b7f932777892c331b58da6eb5bb2))
10
+
11
+
12
+
13
+ ## [2.1.9](https://github.com/atls/raijin/compare/@atls/code-service@2.1.8...@atls/code-service@2.1.9) (2025-05-16)
14
+
15
+ ### Reverts
16
+
17
+ - **code-service:** hmr chunk format ([#506](https://github.com/atls/raijin/issues/506)) ([48c99ff](https://github.com/atls/raijin/commit/48c99ff7f933a05236a5b26fae9f13f8fd922546))
18
+
19
+ ## [2.1.8](https://github.com/atls/raijin/compare/@atls/code-service@2.1.7...@atls/code-service@2.1.8) (2025-05-16)
20
+
21
+ ### Bug Fixes
22
+
23
+ - **code-service:** chunk output format ([#505](https://github.com/atls/raijin/issues/505)) ([0250172](https://github.com/atls/raijin/commit/0250172c580c814a4f4d393ebb1f490777c256ae))
24
+
25
+ ## [2.1.7](https://github.com/atls/raijin/compare/@atls/code-service@2.1.6...@atls/code-service@2.1.7) (2025-05-05)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **code-commit:** max arg length ([#502](https://github.com/atls/raijin/issues/502)) ([31f95d1](https://github.com/atls/raijin/commit/31f95d1a36a787ec6f45c61a0004402219f3312b))
30
+
31
+ ## [2.1.6](https://github.com/atls/raijin/compare/@atls/code-service@2.1.6...@atls/code-service@2.1.6) (2025-04-09)
32
+
33
+ ### Bug Fixes
34
+
35
+ - **code-commit:** max arg length ([#502](https://github.com/atls/raijin/issues/502)) ([31f95d1](https://github.com/atls/raijin/commit/31f95d1a36a787ec6f45c61a0004402219f3312b))
36
+
37
+ ## [2.1.6](https://github.com/atls/raijin/compare/@atls/code-service@2.1.5...@atls/code-service@2.1.6) (2025-03-25)
38
+
39
+ ### Bug Fixes
40
+
41
+ - **code-service:** webpack config to account for module type ([#498](https://github.com/atls/raijin/issues/498)) ([24314cc](https://github.com/atls/raijin/commit/24314ccd3767ed6e4c0b3f1cd1b4e7b5aa2d29e1))
42
+
43
+ ## [2.1.5](https://github.com/atls/raijin/compare/@atls/code-service@2.1.4...@atls/code-service@2.1.5) (2025-03-09)
44
+
45
+ ### Bug Fixes
46
+
47
+ - **service:** logs ([#496](https://github.com/atls/raijin/issues/496)) ([a6f51f7](https://github.com/atls/raijin/commit/a6f51f77ca0efff03e7d9a6f060d7d5faec5ae97))
48
+
49
+ ## [2.1.4](https://github.com/atls/raijin/compare/@atls/code-service@2.1.3...@atls/code-service@2.1.4) (2025-03-09)
50
+
51
+ ### Features
52
+
53
+ - **runtime:** update config ([#495](https://github.com/atls/raijin/issues/495)) ([a0d9d40](https://github.com/atls/raijin/commit/a0d9d40b1ddc15e194bbf7ebaa04cc01a50ff750))
54
+
55
+ ## [2.1.3](https://github.com/atls/raijin/compare/@atls/code-service@2.1.2...@atls/code-service@2.1.3) (2025-03-09)
56
+
57
+ ### Features
58
+
59
+ - **common:** bump ([#494](https://github.com/atls/raijin/issues/494)) ([381d535](https://github.com/atls/raijin/commit/381d5357c2818e157330933edb9256936d251ca3))
60
+
61
+ ## [2.1.2](https://github.com/atls/raijin/compare/@atls/code-service@2.1.1...@atls/code-service@2.1.2) (2025-02-24)
62
+
63
+ ## 2.1.1 (2025-01-30)
64
+
65
+ ### Bug Fixes
66
+
67
+ - bundle ([#435](https://github.com/atls/raijin/issues/435)) ([d47f2b7](https://github.com/atls/raijin/commit/d47f2b72c7038339a5df54702ec0af5a9cd5f886))
68
+ - code service typo ([bf2777c](https://github.com/atls/raijin/commit/bf2777ce9786d6b4c0adc4b4c9106b408383cb12))
69
+ - **code-service:** add sqlite3 to unused externals ([32f139b](https://github.com/atls/raijin/commit/32f139b90a3c4c99eb976a5ec2430c732fd9e394))
70
+ - **code-service:** clean = false for webpack ([0ef5639](https://github.com/atls/raijin/commit/0ef5639dfdc3abde263d44f999c476d658635a03))
71
+ - **code-service:** hmr ([#413](https://github.com/atls/raijin/issues/413)) ([00d3fd3](https://github.com/atls/raijin/commit/00d3fd356e9d201f60558cc8e6d07c8d0de5d845))
72
+ - **code-service:** include grpc-js in bundle ([389568d](https://github.com/atls/raijin/commit/389568d1a231ba48d9647c86c7cc3e30b05e8521))
73
+ - **code-service:** increase jest.setTimeout ([d21ad8f](https://github.com/atls/raijin/commit/d21ad8f545c5207e83fe395438df6f9ab6ccb8d5))
74
+ - **code-service:** null loader for d.ts ([69b8d96](https://github.com/atls/raijin/commit/69b8d965e36b33be9e7c718868573d387e931562))
75
+ - **common:** yarn check ([#485](https://github.com/atls/raijin/issues/485)) ([b0c3cfa](https://github.com/atls/raijin/commit/b0c3cfad8f559c55691ca733c7a3a7b3cd00c4d8))
76
+ - integration tests ([b486a5e](https://github.com/atls/raijin/commit/b486a5efe6cd37f4bd68c0238a74d00bab39220f))
77
+ - **plugin-service:** build and dev commands ([e4af7f4](https://github.com/atls/raijin/commit/e4af7f441c1b1e8c5bc6779c83b2ed44b21894c9))
78
+ - swc loader typo ([b86d570](https://github.com/atls/raijin/commit/b86d570d158848a3eaae6a93caea6d35d64f991e))
79
+ - typecheck ([0384e84](https://github.com/atls/raijin/commit/0384e8435fedacc8ca695d7cd52e3c44ea4b9d57))
80
+ - typecheck ([27ccb0e](https://github.com/atls/raijin/commit/27ccb0ef63898afd00b830952914e060b8dd5593))
81
+ - **typescript:** tests ([52f8d6b](https://github.com/atls/raijin/commit/52f8d6b6cd7a99a8c982ea0ceb725fa162481e0d))
82
+ - webpack output to index.js instead of main.js ([61bd92c](https://github.com/atls/raijin/commit/61bd92cb4108e2c1cc12caec3bf948b8dc92cdad))
83
+
84
+ ### Features
85
+
86
+ - add webpack 4 config to load fonts ([8537e2f](https://github.com/atls/raijin/commit/8537e2f78ca5a2bd925548efce21a2d5c4800543))
87
+ - add webpack imports proto loader and code service, also remove builder, publisher and generator ([02758c7](https://github.com/atls/raijin/commit/02758c7a229b8dd57cfc1be5a7241aaf73835953))
88
+ - BREAKING CHANGE - bump yarn bundle to 4.1.1 ([b3db628](https://github.com/atls/raijin/commit/b3db62837ed75cbbedaf3c13678ab58398bfe50f))
89
+ - BREAKING CHANGE bump typescript to 5.2.2 ([73f56d4](https://github.com/atls/raijin/commit/73f56d4670a0df3183bc29518cbabc238c03c352))
90
+ - bump webpack, use swc, dev server adjustment ([75851db](https://github.com/atls/raijin/commit/75851db4c478bcfbc9490289f29b53d3d49cbc60))
91
+ - bump yarn packages ([6916cb0](https://github.com/atls/raijin/commit/6916cb01c753afd6abd939d193959be6ef0a4b1e))
92
+ - cli-ui dependencies ([8b6447f](https://github.com/atls/raijin/commit/8b6447fdadc0fe96fecb80a129646b4177abd4b1))
93
+ - code service ([99d03df](https://github.com/atls/raijin/commit/99d03df012ea8d7b22e7de1cb6985effeb2e7235))
94
+ - code to ecma modules, bump types/node ([e8dbbfd](https://github.com/atls/raijin/commit/e8dbbfd6891ef59fbd40cb978792f5f6b2642f11))
95
+ - **code-service:** assets path ([e99375e](https://github.com/atls/raijin/commit/e99375e4fb2a6ab7dbd9d6e57520bf6eca5eb2ac))
96
+ - **code:** events service ([7809987](https://github.com/atls/raijin/commit/7809987b700abe05b677e86c11c40c741b5097e6))
97
+ - **code:** preparing esm migration ([85d6702](https://github.com/atls/raijin/commit/85d6702f217df0e0e6e978a98599d1cb1a61f87c))
98
+ - **code:** service re-init, version bumping ([066e0c6](https://github.com/atls/raijin/commit/066e0c607125fa335f5a58a7d6539b67400a3eae))
99
+ - **common:** bump to minor ([775c630](https://github.com/atls/raijin/commit/775c630061f91970a65e34afabeea8d029e02176))
100
+ - **common:** code service protobufjs not external ([a5614ab](https://github.com/atls/raijin/commit/a5614ab9d0af24c2d2be37164f066fd1c86198ec))
101
+ - **common:** test isolate modules ([ff00881](https://github.com/atls/raijin/commit/ff00881228d032c0cda9729d786df9366c77c146))
102
+ - deps update ([71fcad7](https://github.com/atls/raijin/commit/71fcad7089b2eed59805d4a537c6164a7fd42eaa))
103
+ - init code-runtime, WIP for yrnpkg 3v downgrading ([587d7dc](https://github.com/atls/raijin/commit/587d7dc75c6b08c2a4b0a0b4bf380939de83a6c3))
104
+ - jest esm ([4e05d17](https://github.com/atls/raijin/commit/4e05d171ceac0e9550eccbc0c417c09aee13e1c9))
105
+ - **jest:** global setup, teardown, deps update ([253fb44](https://github.com/atls/raijin/commit/253fb444719f38cc260d38e0b7f3b96f766e02a3))
106
+ - remove @atls/builder, init cli-ui-schematics ([9a89280](https://github.com/atls/raijin/commit/9a892802fc3571f5ca46da67dcd10dcdc016e476))
107
+ - remove js files, upgrade all bundles ([46ecbec](https://github.com/atls/raijin/commit/46ecbec27339babc3c0c894b29c544e6c554e7b2))
108
+ - remove repository field, add cli & webpack utilities ([f47613e](https://github.com/atls/raijin/commit/f47613e9784e9eea86ed98e712198b000ca5766d))
109
+ - resolve conflicts ([537749d](https://github.com/atls/raijin/commit/537749d68ead3ef942d325787de4ab77e7b2bfa4))
110
+ - service remove kafkajs from externals ([41a0495](https://github.com/atls/raijin/commit/41a0495720b64557f33dc1083488cbb3623d9098))
111
+ - service upgrade ([de3ba9d](https://github.com/atls/raijin/commit/de3ba9dc09abb7c704364554c119fb875e2291dc))
112
+ - stabilize deps ([3a0bd65](https://github.com/atls/raijin/commit/3a0bd65071d207c2cb22cfe05b664d37d5f7a4c9))
113
+ - swap ts-loader for swc ([9517b15](https://github.com/atls/raijin/commit/9517b15e9a3f560cfccc54e704372b505f757968))
114
+ - update common deps ([b5098e8](https://github.com/atls/raijin/commit/b5098e843c0153a476c16ae8607ba2b598accb60))
115
+ - update deps ([0de0475](https://github.com/atls/raijin/commit/0de04751e64fc9e6d72879289b773f1fa1ec3526))
116
+ - update deps ([de29dbf](https://github.com/atls/raijin/commit/de29dbffcc0c1b9cf081825987e733352b1761a7))
117
+ - update eslint config ([626741f](https://github.com/atls/raijin/commit/626741f1896c709c83857818333dc15f28787036))
118
+ - upgrade ([17fd794](https://github.com/atls/raijin/commit/17fd794be8d7b17693fdb8ae50e6ec83891632d8))
119
+ - upgrade node to 18 ([63ff5ca](https://github.com/atls/raijin/commit/63ff5ca56a526a174e82ebdc215f44e55db7a4f0))
120
+ - webpack to support file extensions ([69a45a4](https://github.com/atls/raijin/commit/69a45a4970b38221b936f5671e38693bdabf85ee))
121
+ - **webpack:** bump, andd proto loader ([#463](https://github.com/atls/raijin/issues/463)) ([d2ab540](https://github.com/atls/raijin/commit/d2ab540602c9009f42d15c7e9f0d48ce049d8ac1))
122
+ - yarn bump ([7948fe2](https://github.com/atls/raijin/commit/7948fe20493323c9af0f0b55cddd92d4cf9553bf))
123
+ - yarn tests utils ([3e5d057](https://github.com/atls/raijin/commit/3e5d057d79b1967e20f51fec5a8ff650f2d7037b))
124
+ - **yarn:** essentials, renderer, tools, types, ui ([e683746](https://github.com/atls/raijin/commit/e683746e203e1d8486c1f4d92d9d9d8f785f84ee))
125
+ - **yarn:** workspace utils ([ffc200d](https://github.com/atls/raijin/commit/ffc200d0f0cf6444fe9053a7f046a5d039f79177))
126
+
127
+ ### Performance Improvements
128
+
129
+ - update deps ([420e788](https://github.com/atls/raijin/commit/420e78845558ecf40aa2b9a63872118d6a5a4b4a))
130
+
131
+ ### Reverts
132
+
133
+ - swc to ts-loader ([e8117a1](https://github.com/atls/raijin/commit/e8117a1aa360aa8287ab5a493eb3f894bdbfe5f2))
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './service.interfaces.js';
2
- export * from './webpack.interfaces.js';
1
+ export type * from './service.interfaces.js';
2
+ export type * from './webpack.interfaces.js';
3
3
  export * from './webpack.config.js';
4
4
  export * from './service.js';
package/dist/index.js CHANGED
@@ -1,4 +1,2 @@
1
- export * from "./service.interfaces.js";
2
- export * from "./webpack.interfaces.js";
3
1
  export * from "./webpack.config.js";
4
2
  export * from "./service.js";
package/dist/service.js CHANGED
@@ -12,11 +12,12 @@ export class Service extends EventEmitter {
12
12
  this.config = config;
13
13
  }
14
14
  static async initialize(cwd) {
15
- const { webpack, nullLoaderPath, tsLoaderPath, nodeLoaderPath } = await import('@atls/code-runtime/webpack');
15
+ const { webpack, nullLoaderPath, tsLoaderPath, nodeLoaderPath, protoLoaderPath } = await import('@atls/code-runtime/webpack');
16
16
  const config = new WebpackConfig(webpack, {
17
17
  nodeLoader: nodeLoaderPath,
18
18
  nullLoader: nullLoaderPath,
19
19
  tsLoader: tsLoaderPath,
20
+ protoLoader: protoLoaderPath,
20
21
  }, cwd);
21
22
  return new Service(webpack, config);
22
23
  }
@@ -8,6 +8,7 @@ export declare class WebpackConfig {
8
8
  tsLoader: string;
9
9
  nodeLoader: string;
10
10
  nullLoader: string;
11
+ protoLoader: string;
11
12
  }, cwd: string);
12
13
  build(environment?: WebpackEnvironment, additionalPlugins?: Array<wp.WebpackPluginInstance>): Promise<wp.Configuration>;
13
14
  private getWorkspaceType;
@@ -21,11 +21,11 @@ export class WebpackConfig {
21
21
  const type = await this.getWorkspaceType();
22
22
  const webpackExternals = new WebpackExternals(this.cwd);
23
23
  const externals = ['webpack/hot/poll?100', await webpackExternals.build()];
24
- const plugins = this.createPlugins(environment, additionalPlugins);
24
+ const plugins = this.createPlugins(environment, additionalPlugins, type === 'module');
25
25
  return {
26
26
  mode: environment,
27
27
  bail: environment === 'production',
28
- target: 'async-node',
28
+ target: 'node',
29
29
  optimization: { minimize: false },
30
30
  experiments: {
31
31
  outputModule: type === 'module',
@@ -58,7 +58,7 @@ export class WebpackConfig {
58
58
  },
59
59
  },
60
60
  externals,
61
- externalsType: type === 'module' ? 'import' : 'commonjs',
61
+ externalsType: environment === 'production' ? (type === 'module' ? 'import' : 'commonjs') : 'commonjs2',
62
62
  externalsPresets: {
63
63
  node: true,
64
64
  },
@@ -79,7 +79,10 @@ export class WebpackConfig {
79
79
  transpileOnly: true,
80
80
  experimentalWatchApi: true,
81
81
  onlyCompileBundledFiles: true,
82
- compilerOptions: { ...tsconfig.compilerOptions, sourceMap: true },
82
+ compilerOptions: {
83
+ ...tsconfig.compilerOptions,
84
+ sourceMap: true,
85
+ },
83
86
  context: this.cwd,
84
87
  configFile,
85
88
  },
@@ -103,7 +106,7 @@ export class WebpackConfig {
103
106
  return 'module';
104
107
  }
105
108
  }
106
- createPlugins(environment, additionalPlugins) {
109
+ createPlugins(environment, additionalPlugins, isEsm) {
107
110
  const plugins = [
108
111
  new this.webpack.IgnorePlugin({
109
112
  checkResource: (resource) => {
@@ -118,7 +121,7 @@ export class WebpackConfig {
118
121
  paths: [this.cwd],
119
122
  });
120
123
  }
121
- catch (err) {
124
+ catch {
122
125
  return true;
123
126
  }
124
127
  return false;
@@ -126,13 +129,15 @@ export class WebpackConfig {
126
129
  }),
127
130
  ...additionalPlugins,
128
131
  ];
129
- if (environment === 'development') {
130
- plugins.push(new this.webpack.HotModuleReplacementPlugin());
132
+ if (isEsm) {
131
133
  plugins.push(new this.webpack.BannerPlugin({
132
134
  banner: `import { createRequire } from 'node:module'\nimport { fileURLToPath } from 'node:url'\nconst require = createRequire(import.meta.url)\nconst __filename = fileURLToPath(import.meta.url)\n`,
133
135
  raw: true,
134
136
  }));
135
137
  }
138
+ if (environment === 'development') {
139
+ plugins.push(new this.webpack.HotModuleReplacementPlugin());
140
+ }
136
141
  return plugins;
137
142
  }
138
143
  }
@@ -1,4 +1,5 @@
1
1
  export const LAZY_IMPORTS = [
2
+ '@grpc/grpc-js',
2
3
  'mqtt',
3
4
  'nats',
4
5
  'mariadb/callback',
@@ -10,9 +10,9 @@ export interface WebpackConfigPlugin {
10
10
  use: any;
11
11
  args: Array<any>;
12
12
  }
13
- declare const ModuleType: {
14
- readonly commonjs: "commonjs";
15
- readonly module: "module";
13
+ type ModuleType = {
14
+ commonjs: 'commonjs';
15
+ module: 'module';
16
16
  };
17
- export type ModuleTypes = (typeof ModuleType)[keyof typeof ModuleType];
17
+ export type ModuleTypes = ModuleType[keyof ModuleType];
18
18
  export {};
@@ -1,5 +1 @@
1
- const ModuleType = {
2
- commonjs: 'commonjs',
3
- module: 'module',
4
- };
5
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls/code-service",
3
- "version": "2.0.9",
3
+ "version": "2.1.10",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "exports": {
@@ -23,16 +23,16 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@atls/code-configuration": "2.0.0",
26
- "@atls/code-runtime": "2.0.9",
26
+ "@atls/code-runtime": "2.1.10",
27
27
  "@atls/config-typescript": "2.0.1",
28
- "@atls/webpack-start-server-plugin": "1.0.0",
28
+ "@atls/webpack-start-server-plugin": "1.0.4",
29
29
  "@yarnpkg/cli": "4.5.1",
30
30
  "@yarnpkg/core": "4.1.4",
31
31
  "typescript": "5.5.4"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@monstrs/logger": "0.0.20",
35
- "@types/node": "22.9.0",
35
+ "@types/node": "22.13.10",
36
36
  "@types/webpack": "5.28.5",
37
37
  "@yarnpkg/fslib": "3.1.0",
38
38
  "package-json-type": "1.0.3"
@@ -50,5 +50,6 @@
50
50
  "main": "dist/index.js",
51
51
  "types": "dist/index.d.ts"
52
52
  },
53
+ "typecheckSkipLibCheck": true,
53
54
  "types": "dist/index.d.ts"
54
55
  }