Skip to content

Commit deab88d

Browse files
chore(release): 1.2.12 [skip ci]
### [1.2.12](v1.2.11...v1.2.12) (2022-04-20) ### 🔁 Chore * **deps-dev:** bump @commitlint/cli from 16.2.1 to 16.2.3 ([270ad1f](270ad1f)) * **deps-dev:** bump @rollup/plugin-commonjs from 21.0.2 to 21.0.3 ([4689394](4689394)) * **deps-dev:** bump @rollup/plugin-commonjs from 21.0.3 to 21.1.0 ([4d3161f](4d3161f)) * **deps-dev:** bump @rollup/plugin-node-resolve from 13.1.3 to 13.2.0 ([f693a7e](f693a7e)) * **deps-dev:** bump @rollup/plugin-node-resolve from 13.2.0 to 13.2.1 ([194882e](194882e)) * **deps-dev:** bump @types/node from 17.0.21 to 17.0.22 ([9675119](9675119)) * **deps-dev:** bump @types/node from 17.0.22 to 17.0.23 ([778a377](778a377)) * **deps-dev:** bump @types/node from 17.0.23 to 17.0.24 ([b709a7d](b709a7d)) * **deps-dev:** bump @types/node from 17.0.24 to 17.0.25 ([69a14c7](69a14c7)) * **deps-dev:** bump eslint from 8.10.0 to 8.11.0 ([b83b010](b83b010)) * **deps-dev:** bump eslint from 8.11.0 to 8.12.0 ([5ba928a](5ba928a)) * **deps-dev:** bump eslint from 8.12.0 to 8.13.0 ([c009f14](c009f14)) * **deps-dev:** bump lint-staged from 12.3.4 to 12.3.5 ([4625f22](4625f22)) * **deps-dev:** bump lint-staged from 12.3.5 to 12.3.6 ([dcfba44](dcfba44)) * **deps-dev:** bump lint-staged from 12.3.6 to 12.3.7 ([d04303b](d04303b)) * **deps-dev:** bump lint-staged from 12.3.7 to 12.3.8 ([a53cf20](a53cf20)) * **deps-dev:** bump prettier from 2.5.1 to 2.6.0 ([2323971](2323971)) * **deps-dev:** bump prettier from 2.6.0 to 2.6.1 ([986eab3](986eab3)) * **deps-dev:** bump prettier from 2.6.1 to 2.6.2 ([c37b818](c37b818)) * **deps-dev:** bump rollup from 2.68.0 to 2.69.0 ([f62b3d1](f62b3d1)) * **deps-dev:** bump rollup from 2.69.0 to 2.69.1 ([fc4232c](fc4232c)) * **deps-dev:** bump rollup from 2.69.1 to 2.70.0 ([9913d9a](9913d9a)) * **deps-dev:** bump rollup from 2.70.0 to 2.70.1 ([052df6c](052df6c)) * **deps-dev:** bump rollup from 2.70.1 to 2.70.2 ([46180dc](46180dc)) * **deps-dev:** bump typedoc from 0.22.12 to 0.22.13 ([fe60386](fe60386)) * **deps-dev:** bump typedoc from 0.22.13 to 0.22.14 ([7cd8b48](7cd8b48)) * **deps-dev:** bump typedoc from 0.22.14 to 0.22.15 ([f401196](f401196)) * **deps-dev:** bump typescript from 4.5.5 to 4.6.2 ([539d493](539d493)) * **deps-dev:** bump typescript from 4.6.2 to 4.6.3 ([8f8ac38](8f8ac38)) * update dists and typings ([46dacfc](46dacfc)) ### 🐛 Fixes * **hooks:** `useRef` improvement ([c3561eb](c3561eb)) * **nanoexpress:** new initialize crash fixed ([b375854](b375854))
1 parent c3561eb commit deab88d

File tree

9 files changed

+11
-7
lines changed

9 files changed

+11
-7
lines changed

cjs/nanoexpress.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1568,7 +1568,7 @@ const useState = (initialValue) => {
15681568
};
15691569
return [value, setValue];
15701570
};
1571-
const useRef = (ref = null, dependencies) => useMemo(() => ({ current: ref }), dependencies);
1571+
const useRef = (ref, dependencies) => useMemo(() => ({ current: ref ?? null }), dependencies);
15721572

15731573
const nanoexpress = (options = {
15741574
ignoreTrailingSlash: true,

cjs/nanoexpress.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/nanoexpress.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/nanoexpress.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nanoexpress/ultimate",
33
"type": "module",
4-
"version": "1.2.11",
4+
"version": "1.2.12",
55
"description": "Ultimate solution based on nanoexpress and best-practices",
66
"main": "cjs/nanoexpress.js",
77
"module": "esm/nanoexpress.js",

typings/helpers/noop.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare const _default: () => void;
2+
export default _default;
3+
//# sourceMappingURL=noop.d.ts.map

typings/helpers/noop.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typings/hooks/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export declare const useCallback: (callback: (...args: any[]) => any, dependenci
33
export declare const useEffect: (callback: (...args: any[]) => any, dependencies: Dependencies) => any;
44
export declare const useMemo: (callback: (...args: any[]) => any, dependencies: Dependencies) => any;
55
export declare const useState: <T>(initialValue: T) => [T, (value: T) => void];
6-
export declare const useRef: <T>(ref: T | null | undefined, dependencies: Dependencies) => T;
6+
export declare const useRef: <T>(ref: T | null, dependencies: Dependencies) => T;
77
//# sourceMappingURL=index.d.ts.map

typings/hooks/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)