@blotch/rsbuild-plugin-angular-lynx 22.2.1 → 22.2.3

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.
Files changed (63) hide show
  1. package/README.md +20 -3
  2. package/dist/544.js +21 -0
  3. package/dist/angular-cli-context.d.ts +34 -0
  4. package/dist/angular-diagnostics.d.ts +58 -0
  5. package/dist/angular-diagnostics.test.d.ts +1 -0
  6. package/dist/angular-rebuild-coordinator.d.ts +1 -1
  7. package/dist/angular.d.ts +5 -3
  8. package/dist/background-entry.d.ts +96 -0
  9. package/dist/background-entry.test.d.ts +1 -0
  10. package/dist/budgets-plugin.d.ts +64 -0
  11. package/dist/budgets-plugin.test.d.ts +1 -0
  12. package/dist/client/background-hot-updates.d.ts +50 -0
  13. package/dist/client/background-hot-updates.js +77 -0
  14. package/dist/client/background-hot-updates.test.d.ts +1 -0
  15. package/dist/client/css-hot-update.cjs +9 -0
  16. package/dist/client/css-hot-update.d.ts +44 -0
  17. package/dist/client/css-hot-update.js +42 -0
  18. package/dist/client/css-hot-update.test.d.ts +1 -0
  19. package/dist/client/hmr-background.js +16 -0
  20. package/dist/client/hmr-main-thread.js +9 -0
  21. package/dist/client/hmr-protocol.d.ts +74 -0
  22. package/dist/client/main-thread-hot-updates.d.ts +40 -0
  23. package/dist/client/main-thread-hot-updates.js +78 -0
  24. package/dist/client/main-thread-hot-updates.test.d.ts +1 -0
  25. package/dist/client/testing/test-context.d.ts +16 -0
  26. package/dist/component-styles-cache.d.ts +13 -31
  27. package/dist/component-styles.d.ts +73 -0
  28. package/dist/component-styles.test.d.ts +1 -0
  29. package/dist/cross-thread-transform.d.ts +38 -0
  30. package/dist/cross-thread-transform.test.d.ts +1 -0
  31. package/dist/css.d.ts +2 -2
  32. package/dist/entry.d.ts +28 -2
  33. package/dist/hot-updates.d.ts +67 -0
  34. package/dist/hot-updates.test.d.ts +1 -0
  35. package/dist/index.d.ts +3 -1
  36. package/dist/index.js +1494 -638
  37. package/dist/layers.d.ts +6 -4
  38. package/dist/logger/dev-logger-middleware.d.ts +13 -7
  39. package/dist/logger/dev-logger.d.ts +13 -0
  40. package/dist/polyfills.js +56 -0
  41. package/dist/polyfills.test.d.ts +1 -0
  42. package/dist/pure-classes.d.ts +27 -0
  43. package/dist/pure-classes.test.d.ts +1 -0
  44. package/dist/resolve.d.ts +19 -0
  45. package/dist/resolve.test.d.ts +1 -0
  46. package/dist/split-chunks.d.ts +2 -2
  47. package/dist/styles/blur-view.css +16 -0
  48. package/dist/transform-module.d.ts +43 -17
  49. package/dist/utils/angular/budgets.d.ts +72 -0
  50. package/dist/utils/angular/budgets.test.d.ts +1 -0
  51. package/dist/utils/angular/build-internals.d.ts +14 -0
  52. package/dist/utils/angular/component-scope-id.d.ts +5 -3
  53. package/dist/utils/angular/component-style-bundler.d.ts +1 -1
  54. package/dist/utils/angular/options.d.ts +80 -2
  55. package/dist/utils/angular/read-workspace.d.ts +5 -1
  56. package/dist/utils/angular/resolve-primary-build.d.ts +26 -0
  57. package/dist/utils/angular/resolve-primary-build.test.d.ts +1 -0
  58. package/dist/utils/options.d.ts +40 -1
  59. package/package.json +13 -8
  60. package/dist/loaders/thread-globals-loader.d.ts +0 -8
  61. package/dist/loaders/thread-globals-loader.js +0 -6
  62. package/patch/patch-angular-build.cjs +0 -27
  63. /package/dist/{loaders/thread-globals-loader.test.d.ts → angular-cli-context.test.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blotch/rsbuild-plugin-angular-lynx",
3
- "version": "22.2.1",
3
+ "version": "22.2.3",
4
4
  "description": "Rsbuild plugin for building AngularLynx applications",
5
5
  "homepage": "https://github.com/Blotch-Smart-Frames/AngularLynx#readme",
6
6
  "bugs": {
@@ -13,8 +13,7 @@
13
13
  "directory": "packages/rsbuild-plugin-angular-lynx"
14
14
  },
15
15
  "files": [
16
- "dist",
17
- "patch"
16
+ "dist"
18
17
  ],
19
18
  "type": "module",
20
19
  "module": "./dist/index.js",
@@ -23,7 +22,8 @@
23
22
  ".": {
24
23
  "types": "./dist/index.d.ts",
25
24
  "import": "./dist/index.js"
26
- }
25
+ },
26
+ "./package.json": "./package.json"
27
27
  },
28
28
  "scripts": {
29
29
  "build": "rslib build",
@@ -37,7 +37,6 @@
37
37
  "format": "oxfmt --write .",
38
38
  "format:check": "oxfmt --check .",
39
39
  "cspell": "cspell .",
40
- "postinstall": "node ./patch/patch-angular-build.cjs",
41
40
  "publish:local": "yalc publish --push"
42
41
  },
43
42
  "dependencies": {
@@ -46,11 +45,9 @@
46
45
  "@lynx-js/runtime-wrapper-webpack-plugin": "^0.2.4",
47
46
  "@lynx-js/template-webpack-plugin": "^0.16.2",
48
47
  "@lynx-js/webpack-runtime-globals": "^0.0.8",
49
- "rsbuild-plugin-tailwindcss": "0.2.4",
50
48
  "tiny-invariant": "^1.3.3"
51
49
  },
52
50
  "devDependencies": {
53
- "@angular-devkit/build-angular": "^22.2.2",
54
51
  "@angular-devkit/core": "^22.2.2",
55
52
  "@angular/build": "^22.2.2",
56
53
  "@rsbuild/core": "^2.2.9",
@@ -61,7 +58,6 @@
61
58
  "typescript": "^6.0.3"
62
59
  },
63
60
  "peerDependencies": {
64
- "@angular-devkit/build-angular": "^22.2.0",
65
61
  "@angular-devkit/core": "^22.2.0",
66
62
  "@angular/build": "^22.2.0",
67
63
  "@angular/localize": "^22.2.0",
@@ -71,5 +67,14 @@
71
67
  "@angular/localize": {
72
68
  "optional": true
73
69
  }
70
+ },
71
+ "ng-update": {
72
+ "packageGroup": [
73
+ "@blotch/angular-lynx",
74
+ "@blotch/angular-lynx-build",
75
+ "@blotch/angular-lynx-testing-library",
76
+ "@blotch/rsbuild-plugin-angular-lynx",
77
+ "@blotch/angular-lynx-native"
78
+ ]
74
79
  }
75
80
  }
@@ -1,8 +0,0 @@
1
- import type { Rspack } from '@rsbuild/core';
2
- /**
3
- * Prepends `globalThis["__MAIN_THREAD__"]=<value>;` to every module in the layer.
4
- * Replaces the BannerPlugin approach — injections happen per-module during
5
- * compilation instead of per-chunk after bundling.
6
- */
7
- declare const threadGlobalsLoader: (this: Rspack.LoaderContext, source: string) => string;
8
- export default threadGlobalsLoader;
@@ -1,6 +0,0 @@
1
- const threadGlobalsLoader = function(source) {
2
- const options = this.getOptions();
3
- return `globalThis["__MAIN_THREAD__"]=${options.isMainThread};\n${source}`;
4
- };
5
- const thread_globals_loader = threadGlobalsLoader;
6
- export default thread_globals_loader;
@@ -1,27 +0,0 @@
1
- const { readFileSync, writeFileSync } = require('node:fs');
2
-
3
- const main = () => {
4
- const angularBuildPackageJson =
5
- require.resolve('@angular/build/package.json');
6
- const fileContentsJson = JSON.parse(
7
- readFileSync(angularBuildPackageJson, 'utf8'),
8
- );
9
- // Angular 22.2 moved the transformer out of `src/tools/esbuild/`.
10
- fileContentsJson.exports['./src/tools/javascript-transformer'] =
11
- './src/tools/javascript-transformer/index.js';
12
- fileContentsJson.exports['./src/tools/angular/compilation'] =
13
- './src/tools/angular/compilation/index.js';
14
- fileContentsJson.exports[
15
- './src/tools/esbuild/angular/file-reference-tracker'
16
- ] = './src/tools/esbuild/angular/file-reference-tracker.js';
17
- fileContentsJson.exports[
18
- './src/tools/esbuild/angular/component-stylesheets'
19
- ] = './src/tools/esbuild/angular/component-stylesheets.js';
20
-
21
- writeFileSync(
22
- angularBuildPackageJson,
23
- JSON.stringify(fileContentsJson, null, 2),
24
- );
25
- };
26
-
27
- main();