Skip to content

Commit 861d0ba

Browse files
committed
refactor: remove support for history
improve performance and save memory usage
1 parent 1e7d7e0 commit 861d0ba

File tree

3 files changed

+64
-45
lines changed

3 files changed

+64
-45
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ All notable changes to this project will be documented in this file.
66

77
---
88

9+
### [3.7.0] - 2023-09-30
10+
11+
### Update
12+
13+
- Update core
14+
- update deps
15+
- rich-domain: update lib core to 1.19.0
16+
- remove support for deprecated history method
17+
- improve performance and save memory usage
18+
19+
---
20+
921
### [3.6.4] - 2023-08-24
1022

1123
### Update

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "types-ddd",
3-
"version": "3.6.4",
3+
"version": "3.7.0",
44
"description": "This package provide utils file and interfaces to assistant build a complex application with domain driving design",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -61,20 +61,20 @@
6161
"bcrypt": "^5.0.1",
6262
"pino": "^8.14.2",
6363
"pino-pretty": "^10.2.0",
64-
"rich-domain": "^1.18.4"
64+
"rich-domain": "^1.19.0"
6565
},
6666
"devDependencies": {
6767
"@microsoft/tsdoc": "^0.14.1",
6868
"@types/bcrypt": "^5.0.0",
6969
"@types/jest": "^27.0.1",
70-
"@types/node": "^20.5.4",
70+
"@types/node": "^20.8.0",
7171
"@types/pino": "^7.0.5",
7272
"husky": "^8.0.1",
7373
"jest": "^27.5.1",
7474
"lint-staged": "^14.0.1",
7575
"madge": "^6.0.0",
7676
"prettier": "^3.0.0",
77-
"rimraf": "^5.0.0",
77+
"rimraf": "^5.0.5",
7878
"ts-jest": "^27.1.4",
7979
"ts-node": "^10.7.0",
8080
"typescript": "^5.1.6"

yarn.lock

Lines changed: 48 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,16 @@
700700
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee"
701701
integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==
702702

703-
"@types/node@*", "@types/node@^20.5.4":
703+
"@types/node@*":
704704
version "20.6.5"
705705
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.6.5.tgz#4c6a79adf59a8e8193ac87a0e522605b16587258"
706706
integrity sha512-2qGq5LAOTh9izcc0+F+dToFigBWiK1phKPt7rNhOqJSr35y8rlIBjDwGtFSgAI6MGIhjwOVNSQZVdJsZJ2uR1w==
707707

708+
"@types/node@^20.8.0":
709+
version "20.8.0"
710+
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.8.0.tgz#10ddf0119cf20028781c06d7115562934e53f745"
711+
integrity sha512-LzcWltT83s1bthcvjBmiBvGJiiUe84NWRHkw+ZV6Fr41z2FbIzvc815dk2nQ3RAKMuN2fkenM/z3Xv2QzEpYxQ==
712+
708713
"@types/pino@^7.0.5":
709714
version "7.0.5"
710715
resolved "https://registry.yarnpkg.com/@types/pino/-/pino-7.0.5.tgz#1c84a81b924a6a9e263dbb581dffdbad7a3c60c4"
@@ -1939,16 +1944,16 @@ glob-parent@^5.1.2:
19391944
dependencies:
19401945
is-glob "^4.0.1"
19411946

1942-
glob@^10.2.5:
1943-
version "10.2.6"
1944-
resolved "https://registry.yarnpkg.com/glob/-/glob-10.2.6.tgz#1e27edbb3bbac055cb97113e27a066c100a4e5e1"
1945-
integrity sha512-U/rnDpXJGF414QQQZv5uVsabTVxMSwzS5CH0p3DRCIV6ownl4f7PzGnkGmvlum2wB+9RlJWJZ6ACU1INnBqiPA==
1947+
glob@^10.3.7:
1948+
version "10.3.10"
1949+
resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.10.tgz#0351ebb809fd187fe421ab96af83d3a70715df4b"
1950+
integrity sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==
19461951
dependencies:
19471952
foreground-child "^3.1.0"
1948-
jackspeak "^2.0.3"
1953+
jackspeak "^2.3.5"
19491954
minimatch "^9.0.1"
1950-
minipass "^5.0.0 || ^6.0.2"
1951-
path-scurry "^1.7.0"
1955+
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
1956+
path-scurry "^1.10.1"
19521957

19531958
glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
19541959
version "7.2.3"
@@ -2275,10 +2280,10 @@ istanbul-reports@^3.1.3:
22752280
html-escaper "^2.0.0"
22762281
istanbul-lib-report "^3.0.0"
22772282

2278-
jackspeak@^2.0.3:
2279-
version "2.2.1"
2280-
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.2.1.tgz#655e8cf025d872c9c03d3eb63e8f0c024fef16a6"
2281-
integrity sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==
2283+
jackspeak@^2.3.5:
2284+
version "2.3.6"
2285+
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8"
2286+
integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==
22822287
dependencies:
22832288
"@isaacs/cliui" "^8.0.2"
22842289
optionalDependencies:
@@ -2861,10 +2866,10 @@ lru-cache@^6.0.0:
28612866
dependencies:
28622867
yallist "^4.0.0"
28632868

2864-
lru-cache@^9.1.1:
2865-
version "9.1.1"
2866-
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-9.1.1.tgz#c58a93de58630b688de39ad04ef02ef26f1902f1"
2867-
integrity sha512-65/Jky17UwSb0BuB9V+MyDpsOtXKmYwzhyl+cOa9XUiI4uV2Ouy/2voFP3+al0BjZbJgMBD8FojMpAf+Z+qn4A==
2869+
"lru-cache@^9.1.1 || ^10.0.0":
2870+
version "10.0.1"
2871+
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.0.1.tgz#0a3be479df549cca0e5d693ac402ff19537a6b7a"
2872+
integrity sha512-IJ4uwUTi2qCccrioU6g9g/5rvvVl13bsdczUUcqbciD9iLr095yj8DQKdObriEvuNSx325N1rV1O0sJFszx75g==
28682873

28692874
madge@^6.0.0:
28702875
version "6.1.0"
@@ -2968,9 +2973,9 @@ minimatch@^5.0.1:
29682973
brace-expansion "^2.0.1"
29692974

29702975
minimatch@^9.0.1:
2971-
version "9.0.1"
2972-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.1.tgz#8a555f541cf976c622daf078bb28f29fb927c253"
2973-
integrity sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==
2976+
version "9.0.3"
2977+
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825"
2978+
integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==
29742979
dependencies:
29752980
brace-expansion "^2.0.1"
29762981

@@ -2986,10 +2991,10 @@ minipass@^3.0.0:
29862991
dependencies:
29872992
yallist "^4.0.0"
29882993

2989-
"minipass@^5.0.0 || ^6.0.2":
2990-
version "6.0.2"
2991-
resolved "https://registry.yarnpkg.com/minipass/-/minipass-6.0.2.tgz#542844b6c4ce95b202c0995b0a471f1229de4c81"
2992-
integrity sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==
2994+
"minipass@^5.0.0 || ^6.0.2 || ^7.0.0":
2995+
version "7.0.4"
2996+
resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.0.4.tgz#dbce03740f50a4786ba994c1fb908844d27b038c"
2997+
integrity sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==
29932998

29942999
minizlib@^2.1.1:
29953000
version "2.1.2"
@@ -3245,13 +3250,13 @@ path-parse@^1.0.7:
32453250
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
32463251
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
32473252

3248-
path-scurry@^1.7.0:
3249-
version "1.9.2"
3250-
resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.9.2.tgz#90f9d296ac5e37e608028e28a447b11d385b3f63"
3251-
integrity sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==
3253+
path-scurry@^1.10.1:
3254+
version "1.10.1"
3255+
resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.1.tgz#9ba6bf5aa8500fe9fd67df4f0d9483b2b0bfc698"
3256+
integrity sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==
32523257
dependencies:
3253-
lru-cache "^9.1.1"
3254-
minipass "^5.0.0 || ^6.0.2"
3258+
lru-cache "^9.1.1 || ^10.0.0"
3259+
minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
32553260

32563261
path-type@^4.0.0:
32573262
version "4.0.0"
@@ -3624,10 +3629,10 @@ rfdc@^1.3.0:
36243629
resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.0.tgz#d0b7c441ab2720d05dc4cf26e01c89631d9da08b"
36253630
integrity sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==
36263631

3627-
rich-domain@^1.18.4:
3628-
version "1.18.4"
3629-
resolved "https://registry.yarnpkg.com/rich-domain/-/rich-domain-1.18.4.tgz#923efa9bafa779952971f49e4cebf999f77a7e86"
3630-
integrity sha512-xfsKrG/hLYQoeym6JDW4xnOPa3iuyaNoJ5BwD+i4QL1DnoYLLsFYLfbFO1sWw5/dwjXYGRS1Acuic22/T0orqg==
3632+
rich-domain@^1.19.0:
3633+
version "1.19.0"
3634+
resolved "https://registry.yarnpkg.com/rich-domain/-/rich-domain-1.19.0.tgz#7956c5ee89f859f170b8e05a42f9db56d9606d8d"
3635+
integrity sha512-cIzhLtuHA+DFBphj9RzkhtoYQosJmiDyf6qmRuKrGcCehQ2Dt7+J3UgA+AbB30ThQyuy+m5L+FBJbDF8YNjJyw==
36313636

36323637
rimraf@^3.0.0, rimraf@^3.0.2:
36333638
version "3.0.2"
@@ -3636,12 +3641,12 @@ rimraf@^3.0.0, rimraf@^3.0.2:
36363641
dependencies:
36373642
glob "^7.1.3"
36383643

3639-
rimraf@^5.0.0:
3640-
version "5.0.1"
3641-
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.1.tgz#0881323ab94ad45fec7c0221f27ea1a142f3f0d0"
3642-
integrity sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==
3644+
rimraf@^5.0.5:
3645+
version "5.0.5"
3646+
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-5.0.5.tgz#9be65d2d6e683447d2e9013da2bf451139a61ccf"
3647+
integrity sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==
36433648
dependencies:
3644-
glob "^10.2.5"
3649+
glob "^10.3.7"
36453650

36463651
run-parallel@^1.1.9:
36473652
version "1.2.0"
@@ -3724,9 +3729,9 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7:
37243729
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
37253730

37263731
signal-exit@^4.0.1:
3727-
version "4.0.2"
3728-
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.0.2.tgz#ff55bb1d9ff2114c13b400688fa544ac63c36967"
3729-
integrity sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==
3732+
version "4.1.0"
3733+
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04"
3734+
integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
37303735

37313736
sisteransi@^1.0.5:
37323737
version "1.0.5"
@@ -3814,6 +3819,7 @@ string-length@^4.0.1:
38143819
strip-ansi "^6.0.0"
38153820

38163821
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
3822+
name string-width-cjs
38173823
version "4.2.3"
38183824
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
38193825
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -4269,6 +4275,7 @@ word-wrap@~1.2.3:
42694275
integrity sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==
42704276

42714277
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
4278+
name wrap-ansi-cjs
42724279
version "7.0.0"
42734280
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
42744281
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==

0 commit comments

Comments
 (0)