@rsbuild/core 2.0.0-rc.1 → 2.0.0-rc.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 (44) hide show
  1. package/compiled/css-loader/index.js +2 -2
  2. package/compiled/html-rspack-plugin/index.js +14 -14
  3. package/compiled/postcss/index.js +1 -1
  4. package/compiled/postcss/lib/at-rule.d.ts +0 -1
  5. package/compiled/postcss/lib/comment.d.ts +0 -1
  6. package/compiled/postcss/lib/container.d.ts +1 -6
  7. package/compiled/postcss/lib/css-syntax-error.d.ts +0 -1
  8. package/compiled/postcss/lib/declaration.d.ts +0 -1
  9. package/compiled/postcss/lib/document.d.ts +0 -1
  10. package/compiled/postcss/lib/fromJSON.d.ts +1 -1
  11. package/compiled/postcss/lib/input.d.ts +0 -1
  12. package/compiled/postcss/lib/lazy-result.d.ts +3 -4
  13. package/compiled/postcss/lib/list.d.ts +1 -1
  14. package/compiled/postcss/lib/no-work-result.d.ts +0 -1
  15. package/compiled/postcss/lib/node.d.ts +0 -1
  16. package/compiled/postcss/lib/parse.d.ts +1 -1
  17. package/compiled/postcss/lib/postcss.d.ts +1 -3
  18. package/compiled/postcss/lib/previous-map.d.ts +0 -1
  19. package/compiled/postcss/lib/processor.d.ts +0 -1
  20. package/compiled/postcss/lib/result.d.ts +0 -1
  21. package/compiled/postcss/lib/root.d.ts +0 -1
  22. package/compiled/postcss/lib/rule.d.ts +12 -12
  23. package/compiled/postcss/lib/stringifier.d.ts +0 -1
  24. package/compiled/postcss/lib/stringify.d.ts +1 -1
  25. package/compiled/postcss/lib/warning.d.ts +0 -1
  26. package/compiled/postcss/license +1 -1
  27. package/compiled/postcss/package.json +1 -1
  28. package/compiled/postcss-loader/index.js +6 -6
  29. package/compiled/rspack-chain/package.json +1 -1
  30. package/compiled/rspack-chain/types/index.d.ts +3 -1
  31. package/dist/{863.js → 753.js} +104 -123
  32. package/dist/http-proxy-middleware.js +4 -4
  33. package/dist/index.js +1 -1
  34. package/dist/launch-editor-middleware.js +6 -6
  35. package/dist/manifest-plugin.js +8 -8
  36. package/dist/memfs.js +16 -56
  37. package/dist/tinyglobby.js +279 -127
  38. package/dist/ws.js +2 -2
  39. package/dist-types/server/devServer.d.ts +2 -2
  40. package/dist-types/server/socketServer.d.ts +3 -3
  41. package/dist-types/types/config.d.ts +7 -1
  42. package/package.json +6 -6
  43. package/dist-types/plugins/esm.d.ts +0 -2
  44. /package/dist/{863.js.LICENSE.txt → 753.js.LICENSE.txt} +0 -0
@@ -8,11 +8,7 @@ import Rule from './rule.js'
8
8
  declare namespace Container {
9
9
  export type ContainerWithChildren<Child extends Node = ChildNode> = {
10
10
  nodes: Child[]
11
- } & (
12
- | AtRule
13
- | Root
14
- | Rule
15
- )
11
+ } & (AtRule | Root | Rule)
16
12
 
17
13
  export interface ValueOptions {
18
14
  /**
@@ -43,7 +39,6 @@ declare namespace Container {
43
39
  | string
44
40
  | undefined
45
41
 
46
-
47
42
  export { Container_ as default }
48
43
  }
49
44
 
@@ -16,7 +16,6 @@ declare namespace CssSyntaxError {
16
16
  line: number
17
17
  }
18
18
 
19
-
20
19
  export { CssSyntaxError_ as default }
21
20
  }
22
21
 
@@ -39,7 +39,6 @@ declare namespace Declaration {
39
39
  value: string
40
40
  }
41
41
 
42
-
43
42
  export { Declaration_ as default }
44
43
  }
45
44
 
@@ -16,7 +16,6 @@ declare namespace Document {
16
16
  raws?: Record<string, any>
17
17
  }
18
18
 
19
-
20
19
  export { Document_ as default }
21
20
  }
22
21
 
@@ -4,6 +4,6 @@ interface FromJSON extends JSONHydrator {
4
4
  default: FromJSON
5
5
  }
6
6
 
7
- declare const fromJSON: FromJSON
7
+ declare let fromJSON: FromJSON
8
8
 
9
9
  export = fromJSON
@@ -49,7 +49,6 @@ declare namespace Input {
49
49
  url: string
50
50
  }
51
51
 
52
-
53
52
  export { Input_ as default }
54
53
  }
55
54
 
@@ -6,7 +6,6 @@ import Root from './root.js'
6
6
  import Warning from './warning.js'
7
7
 
8
8
  declare namespace LazyResult {
9
-
10
9
  export { LazyResult_ as default }
11
10
  }
12
11
 
@@ -19,9 +18,9 @@ declare namespace LazyResult {
19
18
  * const lazy = postcss([autoprefixer]).process(css)
20
19
  * ```
21
20
  */
22
- declare class LazyResult_<RootNode = Document | Root>
23
- implements PromiseLike<Result<RootNode>>
24
- {
21
+ declare class LazyResult_<RootNode = Document | Root> implements PromiseLike<
22
+ Result<RootNode>
23
+ > {
25
24
  /**
26
25
  * Processes input CSS through synchronous and asynchronous plugins
27
26
  * and calls onRejected for each error thrown in any plugin.
@@ -55,6 +55,6 @@ declare namespace list {
55
55
  }
56
56
  }
57
57
 
58
- declare const list: list.List
58
+ declare let list: list.List
59
59
 
60
60
  export = list
@@ -6,7 +6,6 @@ import Root from './root.js'
6
6
  import Warning from './warning.js'
7
7
 
8
8
  declare namespace NoWorkResult {
9
-
10
9
  export { NoWorkResult_ as default }
11
10
  }
12
11
 
@@ -126,7 +126,6 @@ declare namespace Node {
126
126
  word?: string
127
127
  }
128
128
 
129
-
130
129
  class Node extends Node_ {}
131
130
  export { Node as default }
132
131
  }
@@ -4,6 +4,6 @@ interface Parse extends Parser {
4
4
  default: Parse
5
5
  }
6
6
 
7
- declare const parse: Parse
7
+ declare let parse: Parse
8
8
 
9
9
  export = parse
@@ -450,9 +450,7 @@ declare namespace postcss {
450
450
  * @param plugins PostCSS plugins.
451
451
  * @return Processor to process multiple CSS.
452
452
  */
453
- declare function postcss(
454
- plugins?: readonly postcss.AcceptedPlugin[]
455
- ): Processor
453
+ declare function postcss(plugins?: readonly postcss.AcceptedPlugin[]): Processor
456
454
  declare function postcss(...plugins: postcss.AcceptedPlugin[]): Processor
457
455
 
458
456
  export = postcss
@@ -3,7 +3,6 @@ import { SourceMapConsumer } from "./source-map-js"
3
3
  import { ProcessOptions } from './postcss.js'
4
4
 
5
5
  declare namespace PreviousMap {
6
-
7
6
  export { PreviousMap_ as default }
8
7
  }
9
8
 
@@ -12,7 +12,6 @@ import Result from './result.js'
12
12
  import Root from './root.js'
13
13
 
14
14
  declare namespace Processor {
15
-
16
15
  export { Processor_ as default }
17
16
  }
18
17
 
@@ -39,7 +39,6 @@ declare namespace Result {
39
39
  plugin?: string
40
40
  }
41
41
 
42
-
43
42
  export { Result_ as default }
44
43
  }
45
44
 
@@ -40,7 +40,6 @@ declare namespace Root {
40
40
  raws?: RootRaws
41
41
  }
42
42
 
43
-
44
43
  export { Root_ as default }
45
44
  }
46
45
 
@@ -44,19 +44,19 @@ declare namespace Rule {
44
44
  /** Information used to generate byte-to-byte equal node string as it was in the origin input. */
45
45
  raws?: RuleRaws
46
46
  } & (
47
- | {
48
- /** Selector or selectors of the rule. */
49
- selector: string
50
- selectors?: never
51
- }
52
- | {
53
- selector?: never
54
- /** Selectors of the rule represented as an array of strings. */
55
- selectors: readonly string[]
56
- }
57
- ) & ContainerProps
47
+ | {
48
+ /** Selector or selectors of the rule. */
49
+ selector: string
50
+ selectors?: never
51
+ }
52
+ | {
53
+ selector?: never
54
+ /** Selectors of the rule represented as an array of strings. */
55
+ selectors: readonly string[]
56
+ }
57
+ ) &
58
+ ContainerProps
58
59
 
59
-
60
60
  export { Rule_ as default }
61
61
  }
62
62
 
@@ -11,7 +11,6 @@ import {
11
11
  } from './postcss.js'
12
12
 
13
13
  declare namespace Stringifier {
14
-
15
14
  export { Stringifier_ as default }
16
15
  }
17
16
 
@@ -4,6 +4,6 @@ interface Stringify extends Stringifier {
4
4
  default: Stringify
5
5
  }
6
6
 
7
- declare const stringify: Stringify
7
+ declare let stringify: Stringify
8
8
 
9
9
  export = stringify
@@ -40,7 +40,6 @@ declare namespace Warning {
40
40
  word?: string
41
41
  }
42
42
 
43
-
44
43
  export { Warning_ as default }
45
44
  }
46
45
 
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
3
+ Copyright 2013 Andrey Sitnik <andrey@sitnik.es>
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
@@ -1 +1 @@
1
- {"name":"postcss","author":"Andrey Sitnik <andrey@sitnik.ru>","version":"8.5.8","funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"./lib/postcss.d.ts","type":"commonjs"}
1
+ {"name":"postcss","author":"Andrey Sitnik <andrey@sitnik.es>","version":"8.5.9","funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"license":"MIT","types":"./lib/postcss.d.ts","type":"commonjs"}
@@ -1,15 +1,15 @@
1
1
  (() => {
2
2
  "use strict";
3
3
  var __webpack_modules__ = {
4
- 864: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
- module.exports = __nccwpck_require__(334)["default"];
4
+ 488: (module, __unused_webpack_exports, __nccwpck_require__) => {
5
+ module.exports = __nccwpck_require__(566)["default"];
6
6
  },
7
- 334: (__unused_webpack_module, exports, __nccwpck_require__) => {
7
+ 566: (__unused_webpack_module, exports, __nccwpck_require__) => {
8
8
  var __webpack_unused_export__;
9
9
  __webpack_unused_export__ = { value: true };
10
10
  exports["default"] = loader;
11
11
  var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
12
- var _utils = __nccwpck_require__(791);
12
+ var _utils = __nccwpck_require__(487);
13
13
  function _interopRequireDefault(e) {
14
14
  return e && e.__esModule ? e : { default: e };
15
15
  }
@@ -179,7 +179,7 @@
179
179
  callback(null, result.css, map, { ast });
180
180
  }
181
181
  },
182
- 791: (module, exports, __nccwpck_require__) => {
182
+ 487: (module, exports, __nccwpck_require__) => {
183
183
  module = __nccwpck_require__.nmd(module);
184
184
  Object.defineProperty(exports, "__esModule", { value: true });
185
185
  exports.exec = exec;
@@ -716,6 +716,6 @@
716
716
  })();
717
717
  if (typeof __nccwpck_require__ !== "undefined")
718
718
  __nccwpck_require__.ab = __dirname + "/";
719
- var __webpack_exports__ = __nccwpck_require__(864);
719
+ var __webpack_exports__ = __nccwpck_require__(488);
720
720
  module.exports = __webpack_exports__;
721
721
  })();
@@ -1 +1 @@
1
- {"name":"rspack-chain","version":"2.0.0-rc.1","license":"MIT","types":"types/index.d.ts","type":"module"}
1
+ {"name":"rspack-chain","version":"2.0.1","license":"MIT","types":"types/index.d.ts","type":"module"}
@@ -233,7 +233,9 @@ export declare namespace RspackChain {
233
233
  clean(value: RspackOutput['clean']): this;
234
234
  }
235
235
 
236
- type RspackDevServer = Required<NonNullable<Configuration['devServer']>>;
236
+ type RspackDevServer = Required<
237
+ Exclude<Configuration['devServer'], false | null | undefined>
238
+ >;
237
239
 
238
240
  type DevServerShorthandMethods<T> = {
239
241
  [K in keyof RspackDevServer]-?: (value: RspackDevServer[K]) => T;