Skip to content

Commit bc213a9

Browse files
authored
Merge pull request #12 from senecajs/lc-update-type-system
chore: require Node.js >=22, migrate to node:test, extend type system
2 parents 2803772 + c18fc02 commit bc213a9

33 files changed

+10950
-519
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,17 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-latest, windows-latest, macos-latest]
20-
node-version: [lts/*, 22.x, 20.x]
20+
node-version: [24.x, 22.x]
2121

2222
runs-on: ${{ matrix.os }}
2323

2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v4
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
- run: npm install
31-
# manually install peerdeps for node 14
32-
- run: npm i seneca seneca-promisify seneca-entity @seneca/entity-util
3331
- run: npm run prettier
3432
- run: npm run build --if-present
3533
- run: npm test
36-
37-
- name: Coveralls
38-
uses: coverallsapp/github-action@master
39-
with:
40-
github-token: ${{ secrets.GITHUB_TOKEN }}
41-
path-to-lcov: ./coverage/lcov.info

.github/workflows/todo.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: 'TODO'
2-
on: ['push']
2+
# Disabled pending configuration
3+
on: []
4+
# on: ['push']
35
jobs:
46
build:
57
runs-on: 'ubuntu-latest'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ yarn.lock
110110
test/local-config.js
111111

112112
ledger_csv
113+
mise.toml

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Ignore artifacts:
22
dist
3+
dist-test
34
coverage

NOTES.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22

33
## Ledger Articles
44

5-
* https://fundsnetservices.com/debits-and-credits
6-
* https://www.moderntreasury.com/journal/accounting-for-developers-part-i
7-
* https://www.moderntreasury.com/journal/accounting-for-developers-part-ii
8-
* https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
9-
* https://django-hordak.readthedocs.io/en/latest/accounting-for-developers.html
10-
* https://beancount.github.io/docs/the_double_entry_counting_method.html
5+
- https://fundsnetservices.com/debits-and-credits
6+
- https://www.moderntreasury.com/journal/accounting-for-developers-part-i
7+
- https://www.moderntreasury.com/journal/accounting-for-developers-part-ii
8+
- https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
9+
- https://django-hordak.readthedocs.io/en/latest/accounting-for-developers.html
10+
- https://beancount.github.io/docs/the_double_entry_counting_method.html
1111

1212
## Others
1313

14-
* https://github.com/flash-oss/medici
15-
16-
17-
18-
14+
- https://github.com/flash-oss/medici

README.md

Lines changed: 36 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -38,163 +38,140 @@ _None._
3838

3939
<!--START:action-list-->
4040

41-
4241
## Action Patterns
4342

44-
* [balance:account,biz:ledger](#-balanceaccountbizledger-)
45-
* [balance:book,biz:ledger](#-balancebookbizledger-)
46-
* [biz:ledger,close:account](#-bizledgercloseaccount-)
47-
* [biz:ledger,close:book](#-bizledgerclosebook-)
48-
* [biz:ledger,create:account](#-bizledgercreateaccount-)
49-
* [biz:ledger,create:book](#-bizledgercreatebook-)
50-
* [biz:ledger,create:entry](#-bizledgercreateentry-)
51-
* [biz:ledger,export:account,format:csv](#-bizledgerexportaccountformatcsv-)
52-
* [biz:ledger,export:book,format:csv](#-bizledgerexportbookformatcsv-)
53-
* [biz:ledger,get:account](#-bizledgergetaccount-)
54-
* [biz:ledger,get:book](#-bizledgergetbook-)
55-
* [biz:ledger,list:account](#-bizledgerlistaccount-)
56-
* [biz:ledger,list:book](#-bizledgerlistbook-)
57-
* [biz:ledger,list:balance](#-bizledgerlistbalance-)
58-
* [biz:ledger,list:entry](#-bizledgerlistentry-)
59-
* [biz:ledger,update:account](#-bizledgerupdateaccount-)
60-
* [biz:ledger,update:book](#-bizledgerupdatebook-)
61-
* [biz:ledger,void:entry](#-bizledgervoidentry-)
62-
43+
- [balance:account,biz:ledger](#-balanceaccountbizledger-)
44+
- [balance:book,biz:ledger](#-balancebookbizledger-)
45+
- [biz:ledger,close:account](#-bizledgercloseaccount-)
46+
- [biz:ledger,close:book](#-bizledgerclosebook-)
47+
- [biz:ledger,create:account](#-bizledgercreateaccount-)
48+
- [biz:ledger,create:book](#-bizledgercreatebook-)
49+
- [biz:ledger,create:entry](#-bizledgercreateentry-)
50+
- [biz:ledger,export:account,format:csv](#-bizledgerexportaccountformatcsv-)
51+
- [biz:ledger,export:book,format:csv](#-bizledgerexportbookformatcsv-)
52+
- [biz:ledger,get:account](#-bizledgergetaccount-)
53+
- [biz:ledger,get:book](#-bizledgergetbook-)
54+
- [biz:ledger,list:account](#-bizledgerlistaccount-)
55+
- [biz:ledger,list:book](#-bizledgerlistbook-)
56+
- [biz:ledger,list:balance](#-bizledgerlistbalance-)
57+
- [biz:ledger,list:entry](#-bizledgerlistentry-)
58+
- [biz:ledger,update:account](#-bizledgerupdateaccount-)
59+
- [biz:ledger,update:book](#-bizledgerupdatebook-)
60+
- [biz:ledger,void:entry](#-bizledgervoidentry-)
6361

6462
<!--END:action-list-->
6563

6664
<!--START:action-desc-->
6765

68-
6966
## Action Descriptions
7067

7168
### &laquo; `balance:account,biz:ledger` &raquo;
7269

7370
No description provided.
7471

72+
---
7573

76-
77-
----------
7874
### &laquo; `balance:book,biz:ledger` &raquo;
7975

8076
No description provided.
8177

78+
---
8279

83-
84-
----------
8580
### &laquo; `biz:ledger,close:account` &raquo;
8681

8782
No description provided.
8883

84+
---
8985

90-
91-
----------
9286
### &laquo; `biz:ledger,close:book` &raquo;
9387

9488
No description provided.
9589

90+
---
9691

97-
98-
----------
9992
### &laquo; `biz:ledger,create:account` &raquo;
10093

10194
No description provided.
10295

96+
---
10397

104-
105-
----------
10698
### &laquo; `biz:ledger,create:book` &raquo;
10799

108100
No description provided.
109101

102+
---
110103

111-
112-
----------
113104
### &laquo; `biz:ledger,create:entry` &raquo;
114105

115106
No description provided.
116107

108+
---
117109

118-
119-
----------
120110
### &laquo; `biz:ledger,export:account,format:csv` &raquo;
121111

122112
No description provided.
123113

114+
---
124115

125-
126-
----------
127116
### &laquo; `biz:ledger,export:book,format:csv` &raquo;
128117

129118
No description provided.
130119

120+
---
131121

132-
133-
----------
134122
### &laquo; `biz:ledger,get:account` &raquo;
135123

136124
No description provided.
137125

126+
---
138127

139-
140-
----------
141128
### &laquo; `biz:ledger,get:book` &raquo;
142129

143130
No description provided.
144131

132+
---
145133

146-
147-
----------
148134
### &laquo; `biz:ledger,list:account` &raquo;
149135

150136
No description provided.
151137

138+
---
152139

153-
154-
----------
155140
### &laquo; `biz:ledger,list:book` &raquo;
156141

157142
No description provided.
158143

144+
---
159145

160-
161-
----------
162146
### &laquo; `biz:ledger,list:balance` &raquo;
163147

164148
No description provided.
165149

150+
---
166151

167-
168-
----------
169152
### &laquo; `biz:ledger,list:entry` &raquo;
170153

171154
No description provided.
172155

156+
---
173157

174-
175-
----------
176158
### &laquo; `biz:ledger,update:account` &raquo;
177159

178160
No description provided.
179161

162+
---
180163

181-
182-
----------
183164
### &laquo; `biz:ledger,update:book` &raquo;
184165

185166
No description provided.
186167

168+
---
187169

188-
189-
----------
190170
### &laquo; `biz:ledger,void:entry` &raquo;
191171

192172
No description provided.
193173

194-
195-
196-
----------
197-
174+
---
198175

199176
<!--END:action-desc-->
200177

0 commit comments

Comments
 (0)