@xylabs/typeof 5.0.11 → 5.0.12

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/typeof",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
5
5
  "keywords": [
6
6
  "typeof",
@@ -42,9 +42,9 @@
42
42
  "src"
43
43
  ],
44
44
  "devDependencies": {
45
- "@xylabs/ts-scripts-yarn3": "~7.1.7",
46
- "@xylabs/tsconfig": "~7.1.7",
47
- "typescript": "~5.9.2",
45
+ "@xylabs/ts-scripts-yarn3": "~7.1.8",
46
+ "@xylabs/tsconfig": "~7.1.8",
47
+ "typescript": "~5.9.3",
48
48
  "vitest": "~3.2.4"
49
49
  },
50
50
  "engines": {
@@ -109,7 +109,7 @@ describe('is.ts type guards', () => {
109
109
 
110
110
  describe('isBigInt', () => {
111
111
  it('correctly identifies BigInt values', () => {
112
- expect(isBigInt(BigInt(123))).toBe(true)
112
+ expect(isBigInt(123n)).toBe(true)
113
113
  expect(isBigInt(123n)).toBe(true)
114
114
 
115
115
  expect(isBigInt(123)).toBe(false)
@@ -230,7 +230,7 @@ describe('is.ts type guards', () => {
230
230
 
231
231
  it('preserves readonly array types', () => {
232
232
  const v: string | readonly number[]
233
- = Math.random() > 0.5 ? 'nope' : [1, 2, 3] as const
233
+ = Math.random() > 0.5 ? 'nope' : [1, 2, 3] as const
234
234
 
235
235
  if (isArray(v)) {
236
236
  // preserve readonly array