@atls/code-service 2.1.0 → 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 +133 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +0 -2
- package/dist/webpack.config.js +13 -9
- package/dist/webpack.ignore.js +1 -0
- package/dist/webpack.interfaces.d.ts +4 -4
- package/dist/webpack.interfaces.js +0 -4
- package/package.json +5 -4
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
package/dist/index.js
CHANGED
package/dist/webpack.config.js
CHANGED
|
@@ -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: '
|
|
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: {
|
|
82
|
+
compilerOptions: {
|
|
83
|
+
...tsconfig.compilerOptions,
|
|
84
|
+
sourceMap: true,
|
|
85
|
+
},
|
|
83
86
|
context: this.cwd,
|
|
84
87
|
configFile,
|
|
85
88
|
},
|
|
@@ -89,7 +92,6 @@ export class WebpackConfig {
|
|
|
89
92
|
{ test: /\.(png|svg|jpg|jpeg|gif)$/i, type: 'asset/resource' },
|
|
90
93
|
{ test: /\.(md)$/i, type: 'asset/resource' },
|
|
91
94
|
{ test: /\.node$/, use: this.loaders.nodeLoader },
|
|
92
|
-
{ test: /\.proto$/, use: { loader: this.loaders.protoLoader } },
|
|
93
95
|
],
|
|
94
96
|
},
|
|
95
97
|
};
|
|
@@ -104,7 +106,7 @@ export class WebpackConfig {
|
|
|
104
106
|
return 'module';
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
|
-
createPlugins(environment, additionalPlugins) {
|
|
109
|
+
createPlugins(environment, additionalPlugins, isEsm) {
|
|
108
110
|
const plugins = [
|
|
109
111
|
new this.webpack.IgnorePlugin({
|
|
110
112
|
checkResource: (resource) => {
|
|
@@ -119,7 +121,7 @@ export class WebpackConfig {
|
|
|
119
121
|
paths: [this.cwd],
|
|
120
122
|
});
|
|
121
123
|
}
|
|
122
|
-
catch
|
|
124
|
+
catch {
|
|
123
125
|
return true;
|
|
124
126
|
}
|
|
125
127
|
return false;
|
|
@@ -127,13 +129,15 @@ export class WebpackConfig {
|
|
|
127
129
|
}),
|
|
128
130
|
...additionalPlugins,
|
|
129
131
|
];
|
|
130
|
-
if (
|
|
131
|
-
plugins.push(new this.webpack.HotModuleReplacementPlugin());
|
|
132
|
+
if (isEsm) {
|
|
132
133
|
plugins.push(new this.webpack.BannerPlugin({
|
|
133
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`,
|
|
134
135
|
raw: true,
|
|
135
136
|
}));
|
|
136
137
|
}
|
|
138
|
+
if (environment === 'development') {
|
|
139
|
+
plugins.push(new this.webpack.HotModuleReplacementPlugin());
|
|
140
|
+
}
|
|
137
141
|
return plugins;
|
|
138
142
|
}
|
|
139
143
|
}
|
package/dist/webpack.ignore.js
CHANGED
|
@@ -10,9 +10,9 @@ export interface WebpackConfigPlugin {
|
|
|
10
10
|
use: any;
|
|
11
11
|
args: Array<any>;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
type ModuleType = {
|
|
14
|
+
commonjs: 'commonjs';
|
|
15
|
+
module: 'module';
|
|
16
16
|
};
|
|
17
|
-
export type ModuleTypes =
|
|
17
|
+
export type ModuleTypes = ModuleType[keyof ModuleType];
|
|
18
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atls/code-service",
|
|
3
|
-
"version": "2.1.
|
|
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.1.
|
|
26
|
+
"@atls/code-runtime": "2.1.10",
|
|
27
27
|
"@atls/config-typescript": "2.0.1",
|
|
28
|
-
"@atls/webpack-start-server-plugin": "1.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.
|
|
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
|
}
|