Skip to content

Commit 32db0ed

Browse files
authored
Update deps (marpple#216)
* fix: update npm packages * chore: update eslint and prettier configurations to match the new version
1 parent aa7ed08 commit 32db0ed

38 files changed

+1261
-1173
lines changed

.eslintrc

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"root": true,
33
"parser": "@typescript-eslint/parser",
44
"plugins": ["@typescript-eslint"],
5+
"parserOptions": {
6+
"warnOnUnsupportedTypeScriptVersion": false
7+
},
58
"extends": [
69
"eslint:recommended",
710
"plugin:@typescript-eslint/recommended",

.prettierrc

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
"singleQuote": false,
66
"printWidth": 80,
77
"importOrder": ["<THIRD_PARTY_MODULES>", "", "^[./]"],
8-
"importOrderBuiltinModulesToTop": true,
98
"importOrderParserPlugins": ["typescript", "jsx"],
10-
"importOrderMergeDuplicateImports": true,
11-
"importOrderCombineTypeAndValueImports": true,
12-
"importOrderSeparation": true,
13-
"importOrderSortSpecifiers": true
9+
"importOrderTypeScriptVersion": "5.1.6"
1410
}

build/generateExports.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { readFile, writeFile } from "fs/promises";
2-
32
import { glob } from "glob";
43

54
import { drop, map, not, pipe, reduce } from "../src/index";

build/generateExtensions.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { readFile, writeFile } from "fs/promises";
2-
32
import { glob } from "glob";
43

54
const OUTPUT_DIR = "./dist";

package-lock.json

+1,205-1,113
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,37 @@
5656
},
5757
"homepage": "https://fxts.dev",
5858
"devDependencies": {
59-
"@babel/cli": "^7.21.5",
60-
"@babel/core": "^7.21.8",
61-
"@babel/plugin-transform-runtime": "^7.21.4",
62-
"@babel/preset-env": "^7.21.5",
63-
"@babel/preset-typescript": "^7.21.5",
64-
"@babel/runtime-corejs3": "^7.21.5",
65-
"@commitlint/cli": "^17.6.3",
66-
"@commitlint/config-conventional": "^17.6.3",
67-
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
59+
"@babel/cli": "^7.22.5",
60+
"@babel/core": "^7.22.5",
61+
"@babel/plugin-transform-runtime": "^7.22.5",
62+
"@babel/preset-env": "^7.22.5",
63+
"@babel/preset-typescript": "^7.22.5",
64+
"@babel/runtime-corejs3": "^7.22.5",
65+
"@commitlint/cli": "^17.6.6",
66+
"@commitlint/config-conventional": "^17.6.6",
67+
"@ianvs/prettier-plugin-sort-imports": "^4.0.2",
6868
"@types/glob": "^8.1.0",
69-
"@types/jest": "^29.5.1",
70-
"@types/node": "^18.16.6",
71-
"@typescript-eslint/eslint-plugin": "^5.59.5",
72-
"@typescript-eslint/parser": "^5.59.5",
69+
"@types/jest": "^29.5.2",
70+
"@types/node": "^18.16.18",
71+
"@typescript-eslint/eslint-plugin": "^5.60.1",
72+
"@typescript-eslint/parser": "^5.60.1",
7373
"babel-loader": "^9.1.2",
74-
"eslint": "^8.40.0",
74+
"eslint": "^8.43.0",
7575
"eslint-config-prettier": "^8.8.0",
76-
"glob": "^10.2.2",
76+
"glob": "^10.3.1",
7777
"husky": "^8.0.3",
7878
"jest": "^29.5.0",
79-
"lint-staged": "^13.2.2",
79+
"lint-staged": "^13.2.3",
8080
"npm-run-all": "^4.1.5",
8181
"prettier": "^2.8.8",
8282
"ts-jest": "^29.1.0",
8383
"ts-node": "^10.9.1",
84-
"typescript": "^5.0.4",
85-
"webpack": "^5.82.0",
86-
"webpack-cli": "^5.1.0"
84+
"typescript": "^5.1.6",
85+
"webpack": "^5.88.1",
86+
"webpack-cli": "^5.1.4"
8787
},
8888
"dependencies": {
89-
"tslib": "^2.5.0"
89+
"tslib": "^2.6.0"
9090
},
9191
"lint-staged": {
9292
"*.(js|ts)": [

src/average.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import peek from "./Lazy/peek";
21
import { isAsyncIterable, isIterable } from "./_internal/utils";
2+
import peek from "./Lazy/peek";
33
import pipe from "./pipe";
44
import sum from "./sum";
55
import type ReturnValueType from "./types/ReturnValueType";

src/consume.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import range from "./Lazy/range";
21
import { isAsyncIterable, isIterable } from "./_internal/utils";
2+
import range from "./Lazy/range";
33
import type ReturnValueType from "./types/ReturnValueType";
44

55
function sync<T>(iterable: Iterable<T>, n: number) {

src/every.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { isAsyncIterable, isIterable } from "./_internal/utils";
12
import map from "./Lazy/map";
23
import takeUntil from "./Lazy/takeUntil";
3-
import { isAsyncIterable, isIterable } from "./_internal/utils";
44
import not from "./not";
55
import pipe from "./pipe";
66
import reduce from "./reduce";

src/find.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import filter from "./Lazy/filter";
21
import { isAsyncIterable, isIterable } from "./_internal/utils";
32
import head from "./head";
3+
import filter from "./Lazy/filter";
44
import type IterableInfer from "./types/IterableInfer";
55
import type ReturnValueType from "./types/ReturnValueType";
66

src/findIndex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import zipWithIndex from "./Lazy/zipWithIndex";
21
import { isAsyncIterable, isIterable } from "./_internal/utils";
32
import find from "./find";
3+
import zipWithIndex from "./Lazy/zipWithIndex";
44
import pipe from "./pipe";
55
import pipe1 from "./pipe1";
66
import type Arrow from "./types/Arrow";

src/head.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import take from "./Lazy/take";
21
import { isAsyncIterable, isIterable } from "./_internal/utils";
2+
import take from "./Lazy/take";
33
import pipe from "./pipe";
44
import toArray from "./toArray";
55

src/omitBy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { isPromise } from "./_internal/utils";
12
import map from "./Lazy/map";
23
import reject from "./Lazy/reject";
34
import toAsync from "./Lazy/toAsync";
45
import zip from "./Lazy/zip";
5-
import { isPromise } from "./_internal/utils";
66
import pipe from "./pipe";
77
import toArray from "./toArray";
88
import type {

src/pickBy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { isPromise } from "./_internal/utils";
12
import filter from "./Lazy/filter";
23
import map from "./Lazy/map";
34
import toAsync from "./Lazy/toAsync";
45
import zip from "./Lazy/zip";
5-
import { isPromise } from "./_internal/utils";
66
import pipe from "./pipe";
77
import toArray from "./toArray";
88
import type {

src/some.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import map from "./Lazy/map";
2-
import takeUntil from "./Lazy/takeUntil";
31
import { isAsyncIterable, isIterable } from "./_internal/utils";
42
import identity from "./identity";
3+
import map from "./Lazy/map";
4+
import takeUntil from "./Lazy/takeUntil";
55
import pipe from "./pipe";
66
import reduce from "./reduce";
77
import type Arrow from "./types/Arrow";

test/Lazy/append.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
append,
43
concurrent,
@@ -9,6 +8,7 @@ import {
98
toArray,
109
toAsync,
1110
} from "../../src/index";
11+
import { Concurrent } from "../../src/Lazy/concurrent";
1212
import { callFuncAfterTime, generatorMock } from "../utils";
1313

1414
describe("append", function () {

test/Lazy/chunk.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
chunk,
43
concurrent,
@@ -10,6 +9,7 @@ import {
109
toArray,
1110
toAsync,
1211
} from "../../src/index";
12+
import { Concurrent } from "../../src/Lazy/concurrent";
1313
import { callFuncAfterTime, generatorMock } from "../utils";
1414

1515
const expected = [

test/Lazy/compact.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { compact, filter, map, pipe, toArray, toAsync } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
describe("compact", function () {

test/Lazy/concat.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
concat,
43
concurrent,
@@ -8,6 +7,7 @@ import {
87
toArray,
98
toAsync,
109
} from "../../src/index";
10+
import { Concurrent } from "../../src/Lazy/concurrent";
1111
import { callFuncAfterTime, generatorMock } from "../utils";
1212

1313
describe("concat", function () {

test/Lazy/drop.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
concurrent,
43
delay,
@@ -9,6 +8,7 @@ import {
98
toArray,
109
toAsync,
1110
} from "../../src/index";
11+
import { Concurrent } from "../../src/Lazy/concurrent";
1212
import { callFuncAfterTime, generatorMock } from "../utils";
1313

1414
describe("drop", function () {

test/Lazy/dropRight.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
concurrent,
43
delay,
@@ -9,6 +8,7 @@ import {
98
toArray,
109
toAsync,
1110
} from "../../src/index";
11+
import { Concurrent } from "../../src/Lazy/concurrent";
1212
import { callFuncAfterTime, generatorMock } from "../utils";
1313

1414
describe("dropRight", function () {

test/Lazy/dropUntil.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
toArray,
99
toAsync,
1010
} from "../../src";
11-
import { Concurrent } from "../../src/Lazy/concurrent";
1211
import { AsyncFunctionException } from "../../src/_internal/error";
12+
import { Concurrent } from "../../src/Lazy/concurrent";
1313
import { callFuncAfterTime, generatorMock } from "../utils";
1414

1515
describe("dropUntil", function () {

test/Lazy/dropWhile.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { AsyncFunctionException } from "../../src/_internal/error";
32
import {
43
concurrent,
@@ -10,6 +9,7 @@ import {
109
toArray,
1110
toAsync,
1211
} from "../../src/index";
12+
import { Concurrent } from "../../src/Lazy/concurrent";
1313
import { callFuncAfterTime, generatorMock } from "../utils";
1414

1515
describe("dropWhile", function () {

test/Lazy/filter.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { AsyncFunctionException } from "../../src/_internal/error";
32
import {
43
concurrent,
@@ -11,6 +10,7 @@ import {
1110
toArray,
1211
toAsync,
1312
} from "../../src/index";
13+
import { Concurrent } from "../../src/Lazy/concurrent";
1414
import { callFuncAfterTime, generatorMock } from "../utils";
1515

1616
const mod = (a: number) => a % 2 === 0;

test/Lazy/flat.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
chunk,
43
concurrent,
@@ -12,6 +11,7 @@ import {
1211
toArray,
1312
toAsync,
1413
} from "../../src/index";
14+
import { Concurrent } from "../../src/Lazy/concurrent";
1515
import { callFuncAfterTime, generatorMock } from "../utils";
1616

1717
describe("flat", function () {

test/Lazy/flatMap.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { flatMap, map, pipe, toArray, toAsync } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
describe("flatMap", function () {

test/Lazy/map.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { AsyncFunctionException } from "../../src/_internal/error";
32
import { map, pipe, range, toArray, toAsync } from "../../src/index";
3+
import { Concurrent } from "../../src/Lazy/concurrent";
44
import { generatorMock } from "../utils";
55

66
describe("map", function () {

test/Lazy/peek.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { map, peek, pipe, toArray, toAsync } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
describe("peek", function () {

test/Lazy/reject.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { pipe, range, reject, toArray, toAsync } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
const mod = (a: number) => a % 2 === 0;

test/Lazy/take.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
delay,
43
filter,
@@ -9,6 +8,7 @@ import {
98
toArray,
109
toAsync,
1110
} from "../../src/index";
11+
import { Concurrent } from "../../src/Lazy/concurrent";
1212
import { generatorMock } from "../utils";
1313

1414
describe("take", function () {

test/Lazy/takeRight.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
concurrent,
43
delay,
@@ -10,6 +9,7 @@ import {
109
toArray,
1110
toAsync,
1211
} from "../../src/index";
12+
import { Concurrent } from "../../src/Lazy/concurrent";
1313
import { callFuncAfterTime, generatorMock } from "../utils";
1414

1515
describe("takeRight", function () {

test/Lazy/takeUntil.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { AsyncFunctionException } from "../../src/_internal/error";
32
import {
43
concurrent,
@@ -12,6 +11,7 @@ import {
1211
toArray,
1312
toAsync,
1413
} from "../../src/index";
14+
import { Concurrent } from "../../src/Lazy/concurrent";
1515
import { generatorMock } from "../utils";
1616

1717
describe("takeUntil", function () {

test/Lazy/takeWhile.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { AsyncFunctionException } from "../../src/_internal/error";
32
import {
43
concurrent,
@@ -11,6 +10,7 @@ import {
1110
toArray,
1211
toAsync,
1312
} from "../../src/index";
13+
import { Concurrent } from "../../src/Lazy/concurrent";
1414
import { generatorMock } from "../utils";
1515

1616
describe("takeWhile", function () {

test/Lazy/uniq.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { filter, map, pipe, toArray, toAsync, uniq } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
describe("uniq", function () {

test/Lazy/uniqBy.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import { filter, map, pipe, toArray, toAsync, uniqBy } from "../../src/index";
2+
import { Concurrent } from "../../src/Lazy/concurrent";
33
import { generatorMock } from "../utils";
44

55
describe("uniqBy", function () {

test/Lazy/zip.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Concurrent } from "../../src/Lazy/concurrent";
21
import {
32
concurrent,
43
delay,
@@ -8,6 +7,7 @@ import {
87
toAsync,
98
zip,
109
} from "../../src/index";
10+
import { Concurrent } from "../../src/Lazy/concurrent";
1111
import { callFuncAfterTime, generatorMock } from "../utils";
1212

1313
describe("zip", function () {

0 commit comments

Comments
 (0)