@ditojs/utils 2.98.0 → 2.100.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditojs/utils",
3
- "version": "2.98.0",
3
+ "version": "2.100.0",
4
4
  "type": "module",
5
5
  "description": "Dito.js Utility Functions – Dito.js is a declarative and modern web framework, based on Objection.js, Koa.js and Vue.js",
6
6
  "repository": "https://github.com/ditojs/dito/tree/main/packages/utils",
@@ -38,5 +38,5 @@
38
38
  "devDependencies": {
39
39
  "typescript": "^6.0.3"
40
40
  },
41
- "gitHead": "70d0c1d3aa16844959e3c06d71d8253f21abad3f"
41
+ "gitHead": "c6fdbe03971188779fc9cf5f1b4202e08bc75a65"
42
42
  }
@@ -40,8 +40,11 @@ describe('equals()', () => {
40
40
  [false, '', false],
41
41
 
42
42
  [symbol1, symbol1, true],
43
- [symbol1, Object(symbol1), true],
44
- [Object(symbol1), Object(symbol1), true],
43
+ // TODO: Uncomment once vitest can format boxed symbols in `%o` titles,
44
+ // and remove 'should compare boxed symbols' below:
45
+ // https://github.com/vitest-dev/vitest/issues/11445
46
+ // [symbol1, Object(symbol1), true],
47
+ // [Object(symbol1), Object(symbol1), true],
45
48
  [symbol1, symbol2, false],
46
49
 
47
50
  [null, null, true],
@@ -60,6 +63,12 @@ describe('equals()', () => {
60
63
  }
61
64
  )
62
65
 
66
+ // TODO: Remove once the boxed symbol rows above are uncommented.
67
+ it('should compare boxed symbols', () => {
68
+ expect(equals(symbol1, Object(symbol1))).toBe(true)
69
+ expect(equals(Object(symbol1), Object(symbol1))).toBe(true)
70
+ })
71
+
63
72
  it('should compare arrays', () => {
64
73
  let array1 = [true, null, 1, 'a', undefined]
65
74
  let array2 = [true, null, 1, 'a', undefined]