File tree 11 files changed +752
-3807
lines changed
11 files changed +752
-3807
lines changed Original file line number Diff line number Diff line change 2
2
"env" : {
3
3
"browser" : true ,
4
4
"node" : true ,
5
- "es6" : true
5
+ "es6" : true ,
6
+ "mocha" : true
6
7
},
7
8
"extends" : [
8
9
" eslint:recommended" ,
61
62
"args" : " none"
62
63
}],
63
64
"@typescript-eslint/prefer-for-of" : [" error" ],
64
- "@typescript-eslint/prefer-optional-chain" : [" error" ],
65
65
"@typescript-eslint/prefer-ts-expect-error" : [" error" ]
66
66
}
67
67
}
Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
node-test :
14
- name : Node.js tests (ESM)
14
+ name : Node.js tests
15
15
16
16
runs-on : ubuntu-latest
17
17
timeout-minutes : 10
18
18
19
19
strategy :
20
20
matrix :
21
- node-version : [16 .x, 18 .x]
21
+ node-version : [18 .x, 20.x, 21 .x]
22
22
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
23
23
24
24
steps :
31
31
- run : npm run build --if-present
32
32
- run : npm test
33
33
34
- cjs-test :
35
- name : Node.js tests (CommonJS)
36
-
37
- runs-on : ubuntu-latest
38
- timeout-minutes : 10
39
-
40
- strategy :
41
- matrix :
42
- node-version : [16.x, 18.x]
43
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
44
-
45
- steps :
46
- - uses : actions/checkout@v3
47
- - name : Use Node.js ${{ matrix.node-version }} (CommonJS)
48
- uses : actions/setup-node@v3
49
- with :
50
- node-version : ${{ matrix.node-version }}
51
- - run : npm ci
52
- - run : npm run build --if-present
53
- - run : make test-cjs
54
-
55
34
lint :
56
35
name : Lint
57
36
Original file line number Diff line number Diff line change 14
14
- uses : actions/checkout@v3
15
15
- uses : actions/setup-node@v3
16
16
with :
17
- node-version : 16
17
+ node-version : 18
18
18
- run : npm ci
19
19
- run : npm test
20
20
25
25
- uses : actions/checkout@v3
26
26
- uses : actions/setup-node@v3
27
27
with :
28
- node-version : 16
28
+ node-version : 18
29
29
registry-url : https://registry.npmjs.org/
30
30
- run : npm ci
31
31
- run : npm publish
@@ -39,11 +39,11 @@ jobs:
39
39
- uses : actions/checkout@v3
40
40
- uses : actions/setup-node@v3
41
41
with :
42
- node-version : 16
42
+ node-version : 18
43
43
- run : npm ci
44
44
- uses : actions/setup-node@v3
45
45
with :
46
- node-version : 16
46
+ node-version : 18
47
47
registry-url : ' https://npm.pkg.github.com'
48
48
scope : ' @curveball'
49
49
- run : npm publish
Original file line number Diff line number Diff line change 2
2
/node_modules
3
3
4
4
# typescript output
5
- /esm
6
- /cjs
5
+ /dist
7
6
8
7
# Directory used for running tests in CommonJS mode
9
8
/cjs-test
Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2021-2023 Bad Gateway Inc.
3
+ Copyright (c) 2021-2024 Bad Gateway Inc.
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -4,19 +4,12 @@ SOURCE_FILES:=$(shell find src/ -type f -name '*.ts')
4
4
all : build
5
5
6
6
.PHONY :build
7
- build : cjs/build esm /build
7
+ build : dist /build
8
8
9
9
.PHONY :test
10
10
test :
11
11
npx nyc mocha
12
12
13
- .PHONY :test-cjs
14
- test-cjs :
15
- mkdir -p cjs-test
16
- cd test ; npx tsc --module commonjs --outdir ../cjs-test
17
- echo ' {"type": "commonjs"}' > cjs-test/package.json
18
- cd cjs-test; npx mocha --no-package
19
-
20
13
.PHONY :lint
21
14
lint :
22
15
npx eslint --quiet ' src/**/*.ts' ' test/**/*.ts'
@@ -37,17 +30,8 @@ start: build
37
30
38
31
.PHONY :clean
39
32
clean :
40
- rm -rf dist esm cjs cjs-test
41
-
42
- cjs/build : $(SOURCE_FILES )
43
- npx tsc --module commonjs --outDir cjs/
44
- echo ' {"type": "commonjs"}' > cjs/package.json
45
- @# Creating a small file to keep track of the last build time
46
- touch cjs/build
47
-
33
+ rm -rf dist
48
34
49
- esm/build : $(SOURCE_FILES )
50
- npx tsc --module es2022 --outDir esm/
51
- echo ' {"type": "module"}' > esm/package.json
52
- @# Creating a small file to keep track of the last build time
53
- touch esm/build
35
+ dist/build : $(SOURCE_FILES )
36
+ npx tsc
37
+ touch dist/build
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ 1.0.0 (????-??-??)
5
+ ------------------
6
+
7
+ * Finally! Curveball v1. Only took 6 years.
8
+ * CommonJS support has been dropped. The previous version of this library
9
+ supported both CommonJS and ESM. The effort of this no longer feels worth it.
10
+ ESM is the future, so we're dropping CommonJS.
11
+ * Now requires Node 18.
12
+ * Upgraded to Typescript 5.3.
13
+
14
+
4
15
0.11.0 (2023-02-15)
5
16
-------------------
6
17
You can’t perform that action at this time.
0 commit comments