@tamtamchik/json-deep-sort 1.4.1 → 1.5.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": "@tamtamchik/json-deep-sort",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "A comprehensive utility for sorting JSON objects by keys.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -32,20 +32,19 @@
32
32
  "json-tools"
33
33
  ],
34
34
  "devDependencies": {
35
- "@types/jest": "^30.0.0",
36
- "@types/node": "^24.2.1",
35
+ "@eslint/js": "^10.0.1",
36
+ "@types/node": "^25.6.0",
37
37
  "@typescript-eslint/eslint-plugin": "^8.39.0",
38
38
  "@typescript-eslint/parser": "^8.39.0",
39
- "eslint": "^9.33.0",
39
+ "c8": "^11.0.0",
40
+ "eslint": "^10.2.0",
40
41
  "eslint-config-prettier": "^10.1.8",
41
42
  "eslint-plugin-prettier": "^5.5.4",
42
- "jest": "^30.0.5",
43
43
  "jiti": "^2.5.1",
44
44
  "prettier": "^3.6.2",
45
- "ts-jest": "^29.2.4",
46
- "ts-node": "^10.9.2",
47
45
  "tsup": "^8.3.0",
48
- "typescript": "^5.6.3"
46
+ "tsx": "^4.21.0",
47
+ "typescript": "^6.0.2"
49
48
  },
50
49
  "exports": {
51
50
  ".": {
@@ -58,8 +57,8 @@
58
57
  "build": "tsup src/index.ts --format cjs,esm --clean",
59
58
  "dev": "npm run build -- --watch src",
60
59
  "prepublishOnly": "npm run build",
61
- "test": "jest",
62
- "coverage": "jest --coverage",
60
+ "test": "node --import tsx --test test/*.test.ts",
61
+ "coverage": "c8 --reporter=text --reporter=lcov node --import tsx --test test/*.test.ts",
63
62
  "format": "prettier --write .",
64
63
  "lint": "eslint . --ext .ts,.js",
65
64
  "lint:fix": "eslint . --ext .ts,.js --fix"
@@ -1,4 +1,4 @@
1
- import { SortOptions } from './types';
1
+ import type { SortOptions } from './types';
2
2
  import { isSortablePrimitive, hasNullishValues } from './type-guards';
3
3
  import { compareSortablePrimitives } from './comparators';
4
4
 
package/src/core.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SortOptions } from './types';
1
+ import type { SortOptions } from './types';
2
2
  import { isPrimitive, isNonSortableObject, isObject } from './type-guards';
3
3
  import { sortArray } from './array-sorter';
4
4
  import { sortObject } from './object-sorter';
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SortOptions } from './types';
1
+ import type { SortOptions } from './types';
2
2
  import { sortRecursively } from './core';
3
3
 
4
4
  export function sort<T>(
@@ -1,4 +1,4 @@
1
- import { SortOptions, ObjectType, SortedEntry } from './types';
1
+ import type { SortOptions, ObjectType, SortedEntry } from './types';
2
2
  import { compareObjectKeys } from './comparators';
3
3
 
4
4
  export function sortObject(obj: ObjectType, options: SortOptions): ObjectType {
@@ -1,10 +1,5 @@
1
- import {
2
- NULLISH_VALUES,
3
- SORTABLE_PRIMITIVE_TYPES,
4
- NullishValue,
5
- NonSortableType,
6
- ObjectType,
7
- } from './types';
1
+ import { NULLISH_VALUES, SORTABLE_PRIMITIVE_TYPES } from './types';
2
+ import type { NullishValue, NonSortableType, ObjectType } from './types';
8
3
 
9
4
  // Type guards - single responsibility, clear naming
10
5
  export function isNullish(value: unknown): value is NullishValue {