Skip to content

Commit d18e7e1

Browse files
authored
Update commonjs dependencies (#126)
1 parent 3d0abcf commit d18e7e1

6 files changed

Lines changed: 455 additions & 290 deletions

File tree

.changeset/silent-bees-happen.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@rsm-hcd/javascript-react": patch
3+
"@rsm-hcd/javascript-core": patch
4+
---
5+
6+
Update package dependencies
7+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint-staged": "^15.2.2",
2929
"prettier": "^3.2.5",
3030
"turbo": "latest",
31-
"typedoc": "^0.25.8"
31+
"typedoc": "^0.25.9"
3232
},
3333
"engines": {
3434
"node": ">=20",

packages/javascript-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@types/humanize-plus": "^1.8.2",
2727
"@types/jest": "^29.5.12",
2828
"@types/lodash": "^4.14.202",
29-
"@types/node": "^20.11.20",
29+
"@types/node": "^20.11.24",
3030
"@types/rosie": "^0.0.43",
3131
"axios": "^1.6.7",
3232
"cross-env": "^7.0.3",

packages/javascript-core/src/utilities/core-utils.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
MemoizedFunction,
55
ThrottleSettings,
66
} from "lodash";
7-
import { bindAll, curry, memoize, merge, range, throttle, times } from "lodash";
7+
import _ from "lodash";
88
import type { TimerFunctionReturn } from "../types/timer-function-return";
99
import { CollectionUtils } from "./collection-utils";
1010

@@ -26,7 +26,7 @@ const CoreUtils = {
2626
* @return Returns object.
2727
*/
2828
bindAll<T>(object: T, ...methodNames: (string | string[])[]): T {
29-
return bindAll(object, ...methodNames);
29+
return _.bindAll(object, ...methodNames);
3030
},
3131

3232
/**
@@ -38,7 +38,7 @@ const CoreUtils = {
3838
* @return Returns the new curried function.
3939
*/
4040
curry<T1, R>(func: (t1: T1) => R, arity?: number): CurriedFunction1<T1, R> {
41-
return curry(func, arity);
41+
return _.curry(func, arity);
4242
},
4343

4444
/**
@@ -94,7 +94,7 @@ const CoreUtils = {
9494
func: T,
9595
resolver?: (...args: any[]) => any
9696
): T & MemoizedFunction {
97-
return memoize(func, resolver);
97+
return _.memoize(func, resolver);
9898
},
9999

100100
/**
@@ -109,7 +109,7 @@ const CoreUtils = {
109109
object: TObject,
110110
source: TSource
111111
): TObject & TSource {
112-
return merge(object, source);
112+
return _.merge(object, source);
113113
},
114114

115115
/**
@@ -163,7 +163,7 @@ const CoreUtils = {
163163
* @return Returns a new range array.
164164
*/
165165
range(start: number, end?: number, step?: number): number[] {
166-
return range(start, end, step);
166+
return _.range(start, end, step);
167167
},
168168

169169
/**
@@ -220,7 +220,7 @@ const CoreUtils = {
220220
wait?: number,
221221
options?: ThrottleSettings
222222
): DebouncedFunc<T> {
223-
return throttle(func, wait, options);
223+
return _.throttle(func, wait, options);
224224
},
225225

226226
/**
@@ -257,7 +257,7 @@ const CoreUtils = {
257257
* @return Returns the array of results.
258258
*/
259259
times<TResult>(n: number, iteratee: (num: number) => TResult): TResult[] {
260-
return times(n, iteratee);
260+
return _.times(n, iteratee);
261261
},
262262
};
263263

packages/javascript-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@testing-library/react-hooks": "^8.0.1",
2929
"@types/jest": "^29.5.12",
3030
"@types/node": "20.11.20",
31-
"@types/react": "^18.2.58",
31+
"@types/react": "^18.2.61",
3232
"@types/react-dom": "^18.2.19",
3333
"@types/rosie": "0.0.45",
3434
"axios": "^1.6.7",
@@ -47,7 +47,7 @@
4747
"react": "^18.2.0",
4848
"react-dom": "^18.2.0",
4949
"react-i18next": "^14.0.5",
50-
"react-router-dom": "^6.22.1",
50+
"react-router-dom": "^6.22.2",
5151
"react-test-renderer": "^18.2.0",
5252
"rimraf": "^5.0.5",
5353
"rosie": "^2.1.1",

0 commit comments

Comments
 (0)