oxlint 1.58.0 → 1.60.0

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.
@@ -79,7 +79,7 @@ function parse(path, sourceText, options) {
79
79
  if (maxSourceByteLen > 1073741824) throw Error("Source text is too long");
80
80
  let sourceStartPos = ACTIVE_SIZE - maxSourceByteLen, sourceBuffer = new Uint8Array(buffer.buffer, buffer.byteOffset + sourceStartPos, maxSourceByteLen), { read, written: sourceByteLen } = textEncoder.encodeInto(sourceText, sourceBuffer);
81
81
  if (read !== sourceText.length) throw Error("Failed to write source text into buffer");
82
- if (parseRawSync(path, buffer, sourceStartPos, sourceByteLen, options), buffer.uint32[536870900] === 0) throw Error("Parsing failed");
82
+ if (parseRawSync(path, buffer, sourceStartPos, sourceByteLen, options), buffer.int32[536870900] === 0) throw Error("Parsing failed");
83
83
  }
84
84
  /**
85
85
  * Create a `Uint8Array` which is 2 GiB in size, with its start aligned on 4 GiB.
@@ -98,7 +98,7 @@ function parse(path, sourceText, options) {
98
98
  */
99
99
  function initBuffer() {
100
100
  let arrayBuffer = new ArrayBuffer(ARRAY_BUFFER_SIZE), offset = getBufferOffset(new Uint8Array(arrayBuffer));
101
- buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.uint32 = new Uint32Array(arrayBuffer, offset, BUFFER_SIZE / 4), buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8), buffers.push(buffer);
101
+ buffer = new Uint8Array(arrayBuffer, offset, BUFFER_SIZE), buffer.int32 = new Int32Array(arrayBuffer, offset, BUFFER_SIZE / 4), buffer.float64 = new Float64Array(arrayBuffer, offset, BUFFER_SIZE / 8), buffers.push(buffer);
102
102
  }
103
103
  /**
104
104
  * Returns `true` if raw transfer is supported.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint",
3
- "version": "1.58.0",
3
+ "version": "1.60.0",
4
4
  "description": "Linter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "eslint",
@@ -42,7 +42,8 @@
42
42
  "./plugins-dev": {
43
43
  "types": "./dist/plugins-dev.d.ts",
44
44
  "default": "./dist/plugins-dev.js"
45
- }
45
+ },
46
+ "./package.json": "./package.json"
46
47
  },
47
48
  "peerDependencies": {
48
49
  "oxlint-tsgolint": ">=0.18.0"
@@ -82,24 +83,24 @@
82
83
  },
83
84
  "preferUnplugged": true,
84
85
  "optionalDependencies": {
85
- "@oxlint/binding-darwin-arm64": "1.58.0",
86
- "@oxlint/binding-android-arm64": "1.58.0",
87
- "@oxlint/binding-win32-arm64-msvc": "1.58.0",
88
- "@oxlint/binding-linux-arm64-gnu": "1.58.0",
89
- "@oxlint/binding-linux-arm64-musl": "1.58.0",
90
- "@oxlint/binding-openharmony-arm64": "1.58.0",
91
- "@oxlint/binding-android-arm-eabi": "1.58.0",
92
- "@oxlint/binding-linux-arm-gnueabihf": "1.58.0",
93
- "@oxlint/binding-linux-arm-musleabihf": "1.58.0",
94
- "@oxlint/binding-win32-ia32-msvc": "1.58.0",
95
- "@oxlint/binding-linux-ppc64-gnu": "1.58.0",
96
- "@oxlint/binding-linux-riscv64-gnu": "1.58.0",
97
- "@oxlint/binding-linux-riscv64-musl": "1.58.0",
98
- "@oxlint/binding-linux-s390x-gnu": "1.58.0",
99
- "@oxlint/binding-darwin-x64": "1.58.0",
100
- "@oxlint/binding-win32-x64-msvc": "1.58.0",
101
- "@oxlint/binding-freebsd-x64": "1.58.0",
102
- "@oxlint/binding-linux-x64-gnu": "1.58.0",
103
- "@oxlint/binding-linux-x64-musl": "1.58.0"
86
+ "@oxlint/binding-darwin-arm64": "1.60.0",
87
+ "@oxlint/binding-android-arm64": "1.60.0",
88
+ "@oxlint/binding-win32-arm64-msvc": "1.60.0",
89
+ "@oxlint/binding-linux-arm64-gnu": "1.60.0",
90
+ "@oxlint/binding-linux-arm64-musl": "1.60.0",
91
+ "@oxlint/binding-openharmony-arm64": "1.60.0",
92
+ "@oxlint/binding-android-arm-eabi": "1.60.0",
93
+ "@oxlint/binding-linux-arm-gnueabihf": "1.60.0",
94
+ "@oxlint/binding-linux-arm-musleabihf": "1.60.0",
95
+ "@oxlint/binding-win32-ia32-msvc": "1.60.0",
96
+ "@oxlint/binding-linux-ppc64-gnu": "1.60.0",
97
+ "@oxlint/binding-linux-riscv64-gnu": "1.60.0",
98
+ "@oxlint/binding-linux-riscv64-musl": "1.60.0",
99
+ "@oxlint/binding-linux-s390x-gnu": "1.60.0",
100
+ "@oxlint/binding-darwin-x64": "1.60.0",
101
+ "@oxlint/binding-win32-x64-msvc": "1.60.0",
102
+ "@oxlint/binding-freebsd-x64": "1.60.0",
103
+ "@oxlint/binding-linux-x64-gnu": "1.60.0",
104
+ "@oxlint/binding-linux-x64-musl": "1.60.0"
104
105
  }
105
106
  }