rolldown 1.0.0-beta.3-commit.62fba31 → 1.0.0-beta.3-commit.d298c0b

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.
@@ -1035,21 +1035,22 @@ export interface ParserOptions {
1035
1035
  * (non-standard) `ParenthesizedExpression` nodes that have a single `expression` property
1036
1036
  * containing the expression inside parentheses.
1037
1037
  *
1038
- * Default: true
1038
+ * @default true
1039
1039
  */
1040
1040
  preserveParens?: boolean
1041
+ /**
1042
+ * Produce semantic errors with an additional AST pass.
1043
+ * Semantic errors depend on symbols and scopes, where the parser does not construct.
1044
+ * This adds a small performance overhead.
1045
+ *
1046
+ * @default false
1047
+ */
1048
+ showSemanticErrors?: boolean
1041
1049
  }
1042
1050
 
1043
1051
  /** Parse synchronously. */
1044
1052
  export declare function parseSync(filename: string, sourceText: string, options?: ParserOptions | undefined | null): ParseResult
1045
1053
 
1046
- /**
1047
- * Parse without returning anything.
1048
- *
1049
- * This is for benchmark purposes such as measuring napi communication overhead.
1050
- */
1051
- export declare function parseWithoutReturn(filename: string, sourceText: string, options?: ParserOptions | undefined | null): void
1052
-
1053
1054
  export interface PreRenderedChunk {
1054
1055
  name: string
1055
1056
  isEntry: boolean
@@ -23,7 +23,6 @@ export interface WatchOptions {
23
23
  };
24
24
  include?: StringOrRegExp | StringOrRegExp[];
25
25
  exclude?: StringOrRegExp | StringOrRegExp[];
26
- chokidar?: any;
27
26
  }
28
27
  export interface ChecksOptions {
29
28
  /**
@@ -1,7 +1,6 @@
1
1
  import type { ObjectSchema } from '../types/schema';
2
- import type { TreeshakingOptions } from '../types/module-side-effects';
3
- export declare function validateTreeShakingOptions(options: TreeshakingOptions): void;
4
2
  export declare function validateCliOptions<T>(options: T): [T, string[]?];
3
+ export declare function validateOption<T>(key: 'input' | 'output', options: T): void;
5
4
  export declare function getInputCliKeys(): string[];
6
5
  export declare function getOutputCliKeys(): string[];
7
6
  export declare function getJsonSchema(): ObjectSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.3-commit.62fba31",
3
+ "version": "1.0.0-beta.3-commit.d298c0b",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "repository": {
@@ -84,12 +84,12 @@
84
84
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
85
85
  },
86
86
  "dependencies": {
87
- "@oxc-project/types": "0.53.0",
87
+ "@oxc-project/types": "0.54.0",
88
88
  "@valibot/to-json-schema": "1.0.0-rc.0",
89
89
  "valibot": "1.0.0-rc.3"
90
90
  },
91
91
  "peerDependencies": {
92
- "@oxc-project/runtime": "0.53.0"
92
+ "@oxc-project/runtime": "0.54.0"
93
93
  },
94
94
  "peerDependenciesMeta": {
95
95
  "@oxc-project/runtime": {
@@ -122,21 +122,21 @@
122
122
  "unbuild": "^3.0.0",
123
123
  "why-is-node-running": "^3.0.0",
124
124
  "@rolldown/testing": "0.0.1",
125
- "rolldown": "1.0.0-beta.3-commit.62fba31"
125
+ "rolldown": "1.0.0-beta.3-commit.d298c0b"
126
126
  },
127
127
  "optionalDependencies": {
128
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.62fba31",
129
- "@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.62fba31",
130
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.62fba31",
131
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.62fba31",
132
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.62fba31",
133
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.62fba31",
134
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.62fba31",
135
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.62fba31",
136
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.62fba31",
137
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.62fba31",
138
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.62fba31",
139
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.62fba31"
128
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.d298c0b",
129
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.d298c0b",
130
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.d298c0b",
131
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.d298c0b",
132
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.d298c0b",
133
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.d298c0b",
134
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.d298c0b",
135
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.d298c0b",
136
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.d298c0b",
137
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.d298c0b",
138
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.d298c0b",
139
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.d298c0b"
140
140
  },
141
141
  "scripts": {
142
142
  "# Scrips for binding #": "_",