Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: bump wasm-bindgen to 0.2.96 #7551

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ jobs:

- run: just build-wasm debug
- working-directory: npm/oxc-wasm
run: |
sed -i ${{ (runner.os == 'macOS' && '""') || '' }} -e 's/=> Array;/=> number[];/g' oxc_wasm.d.ts
pnpm run check
run: pnpm run check

- working-directory: wasm/parser
run: pnpm run build
Expand Down
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ tsify = "0.4.5"
ureq = { version = "2.10.1", default-features = false }
url = "2.5.2"
walkdir = "2.5.0"
wasm-bindgen = "0.2.95"
wasm-bindgen = "0.2.96"

[workspace.metadata.cargo-shear]
ignored = ["napi", "oxc_transform_napi", "prettyplease"]
Expand Down
73 changes: 32 additions & 41 deletions npm/oxc-wasm/oxc_wasm.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/* tslint:disable */
/* eslint-disable */
/**
* @param {string} query
* @param {any} opts
* @returns {any}
*/
export function browserslist(query: string, opts: any): any;
export interface OxcOptions {
run?: OxcRunOptions;
Expand Down Expand Up @@ -93,12 +88,6 @@ export interface Comment {

export type CommentType = "Line" | "Block";

export interface Reference {
nodeId: NodeId;
symbolId: SymbolId | null;
flags: ReferenceFlags;
}


export type IndexVec<I, T> = Array<T>;
export type CompactStr = string;
Expand All @@ -116,11 +105,11 @@ export interface SymbolTable {
references: IndexVec<ReferenceId, Reference>;
}


export type SymbolId = number;
export type SymbolFlags = unknown;
export type RedeclarationId = unknown;

export interface Reference {
nodeId: NodeId;
symbolId: SymbolId | null;
flags: ReferenceFlags;
}


export type NodeId = number;
Expand All @@ -133,10 +122,6 @@ export type NodeFlags = {



export type ScopeId = number;



export type ReferenceId = number;
export type ReferenceFlags = {
None: 0,
Expand All @@ -147,27 +132,33 @@ export type ReferenceFlags = {
}



export type ScopeId = number;



export type SymbolId = number;
export type SymbolFlags = unknown;
export type RedeclarationId = unknown;


export class Oxc {
free(): void;
constructor();
/**
* Returns Array of String
* # Errors
* # Panics
* @returns {any[]}
*/
getDiagnostics(): any[];
/**
* Returns comments
* # Errors
* @returns {any[]}
*/
getComments(): any[];
/**
* # Errors
* Serde serialization error
* @param {string} source_text
* @param {OxcOptions} options
*/
run(source_text: string, options: OxcOptions): void;
}
Expand All @@ -177,28 +168,28 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly __wbg_oxc_free: (a: number, b: number) => void;
readonly __wbg_get_oxc_ast: (a: number) => number;
readonly __wbg_get_oxc_ir: (a: number) => number[];
readonly __wbg_get_oxc_controlFlowGraph: (a: number) => number[];
readonly __wbg_get_oxc_symbols: (a: number) => number;
readonly __wbg_get_oxc_scopeText: (a: number) => number[];
readonly __wbg_get_oxc_codegenText: (a: number) => number[];
readonly __wbg_get_oxc_formattedText: (a: number) => number[];
readonly __wbg_get_oxc_prettierFormattedText: (a: number) => number[];
readonly __wbg_get_oxc_prettierIrText: (a: number) => number[];
readonly __wbg_get_oxc_ast: (a: number) => any;
readonly __wbg_get_oxc_ir: (a: number) => [number, number];
readonly __wbg_get_oxc_controlFlowGraph: (a: number) => [number, number];
readonly __wbg_get_oxc_symbols: (a: number) => any;
readonly __wbg_get_oxc_scopeText: (a: number) => [number, number];
readonly __wbg_get_oxc_codegenText: (a: number) => [number, number];
readonly __wbg_get_oxc_formattedText: (a: number) => [number, number];
readonly __wbg_get_oxc_prettierFormattedText: (a: number) => [number, number];
readonly __wbg_get_oxc_prettierIrText: (a: number) => [number, number];
readonly oxc_new: () => number;
readonly oxc_getDiagnostics: (a: number) => number[];
readonly oxc_getComments: (a: number) => number[];
readonly oxc_run: (a: number, b: number, c: number, d: number) => number[];
readonly browserslist: (a: number, b: number, c: number) => number[];
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly oxc_getDiagnostics: (a: number) => [number, number, number, number];
readonly oxc_getComments: (a: number) => [number, number, number, number];
readonly oxc_run: (a: number, b: number, c: number, d: any) => [number, number];
readonly browserslist: (a: number, b: number, c: any) => [number, number, number];
readonly __wbindgen_exn_store: (a: number) => void;
readonly __externref_table_alloc: () => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __externref_table_dealloc: (a: number) => void;
readonly __externref_drop_slice: (a: number, b: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __externref_table_alloc: () => number;
readonly __wbindgen_start: () => void;
}

Expand Down
Loading
Loading