nalloc 0.5.0 → 0.5.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nalloc",
3
3
  "description": "Rust-like Option and Result for TypeScript with near-zero allocations for extreme performance",
4
- "version": "0.5.0",
4
+ "version": "0.5.2",
5
5
  "type": "module",
6
6
  "types": "build/index.d.ts",
7
7
  "main": "build/index.cjs",
@@ -142,16 +142,16 @@
142
142
  }
143
143
  },
144
144
  "devDependencies": {
145
- "@types/node": "^25.9.3",
146
- "@typescript-eslint/parser": "^8.61.1",
147
- "@typescript-eslint/rule-tester": "^8.61.1",
148
- "@typescript-eslint/utils": "^8.61.1",
145
+ "@types/node": "^25.9.4",
146
+ "@typescript-eslint/parser": "^8.62.1",
147
+ "@typescript-eslint/rule-tester": "^8.62.1",
148
+ "@typescript-eslint/utils": "^8.62.1",
149
149
  "@vitest/coverage-v8": "^4.1.9",
150
- "inop": "^0.9.0",
150
+ "inop": "^0.9.4",
151
151
  "overtake": "^2.1.1",
152
- "oxc-parser": "^0.136.0",
153
- "oxlint": "^1.70.0",
154
- "prettier": "^3.8.4",
152
+ "oxc-parser": "^0.138.0",
153
+ "oxlint": "^1.72.0",
154
+ "prettier": "^3.9.4",
155
155
  "tsafe": "^1.8.12",
156
156
  "tslib": "^2.8.1",
157
157
  "typescript": "^6.0.3",
@@ -47,9 +47,11 @@ assert<Equals<typeof errValue2, Err<number>>>;
47
47
  const result: Result<number, string> = Math.random() > 0 ? ok(42) : err("error");
48
48
  if (isOk(result)) {
49
49
  assert<Equals<typeof result, Ok<number>>>;
50
+ assert<Not<Equals<typeof result, Err<string>>>>;
50
51
  const value: number = result;
51
52
  } else {
52
53
  assert<Equals<typeof result, Err<string>>>;
54
+ assert<Not<Equals<typeof result, Ok<number>>>>;
53
55
  const error: string = result.error;
54
56
  }
55
57