@astral-sh/ruff-wasm-web 0.15.18 → 0.15.20

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/README.md CHANGED
@@ -19,33 +19,46 @@ There are multiple versions for the different wasm-pack targets. See [here](http
19
19
  This example uses the wasm-pack web target and is known to work with Vite.
20
20
 
21
21
  ```ts
22
- import init, { Workspace, type Diagnostic, PositionEncoding } from '@astral-sh/ruff-wasm-web';
22
+ import init, { Workspace, type Diagnostic, PositionEncoding } from "@astral-sh/ruff-wasm-web";
23
23
 
24
- const exampleDocument = `print('hello'); print("world")`
24
+ const exampleDocument = `print('hello'); print("world")`;
25
25
 
26
26
  await init(); // Initializes WASM module
27
27
 
28
28
  // These are default settings just to illustrate configuring Ruff
29
29
  // Settings info: https://docs.astral.sh/ruff/settings
30
- const workspace = new Workspace({
31
- 'line-length': 88,
32
- 'indent-width': 4,
33
- format: {
34
- 'indent-style': 'space',
35
- 'quote-style': 'double',
30
+ const workspace = new Workspace(
31
+ {
32
+ "line-length": 88,
33
+ "indent-width": 4,
34
+ format: {
35
+ "indent-style": "space",
36
+ "quote-style": "double",
37
+ },
38
+ lint: {
39
+ select: ["E4", "E7", "E9", "F"],
40
+ },
36
41
  },
37
- lint: {
38
- select: [
39
- 'E4',
40
- 'E7',
41
- 'E9',
42
- 'F'
43
- ],
44
- },
45
- }, PositionEncoding.UTF16);
42
+ PositionEncoding.UTF16,
43
+ );
46
44
 
47
45
  // Will contain 1 diagnostic code for E702: Multiple statements on one line
48
46
  const diagnostics: Diagnostic[] = workspace.check(exampleDocument);
49
47
 
50
48
  const formatted = workspace.format(exampleDocument);
51
49
  ```
50
+
51
+ ## Versioning
52
+
53
+ <!-- BEGIN GENERATED CRATE VERSIONING -->
54
+
55
+ This crate is an internal component of [Ruff](https://crates.io/crates/ruff). The Rust API exposed
56
+ here is unstable and will have frequent breaking changes.
57
+
58
+ This version (0.15.20) is a component of [Ruff 0.15.20](https://crates.io/crates/ruff/0.15.20). The
59
+ source can be found [here](https://github.com/astral-sh/ruff/blob/0.15.20/crates/ruff_wasm).
60
+
61
+ See Ruff's [crate versioning policy](https://docs.astral.sh/ruff/versioning/#crate-versioning) for
62
+ details on versioning.
63
+
64
+ <!-- END GENERATED CRATE VERSIONING -->
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Charlie Marsh <charlie.r.marsh@gmail.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for Ruff",
8
- "version": "0.15.18",
8
+ "version": "0.15.20",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
package/ruff_wasm_bg.wasm CHANGED
Binary file