| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. |
| 4 |
|
| 5 |
### [4.3.2](https://github.com/medikoo/ncjsm/compare/v4.3.1...v4.3.2) (2023-01-13) |
| 6 |
|
| 7 |
### Bug Fixes |
| 8 |
|
| 9 |
- **`requireUncached`:** Fix modules cache recovery on global reset ([c90dae4](https://github.com/medikoo/ncjsm/commit/c90dae4c31fb4f3e3e490ca8af87d279500730ed)) |
| 10 |
|
| 11 |
### [4.3.1](https://github.com/medikoo/ncjsm/compare/v4.3.0...v4.3.1) (2022-07-09) |
| 12 |
|
| 13 |
### Bug Fixes |
| 14 |
|
| 15 |
- Fix `ignoreMissing` support in deep dependencies resolution ([#6](https://github.com/serverless/serverless/issues/6)) ([669491c](https://github.com/medikoo/ncjsm/commit/669491c8ba2942ef7f1d5caa98a11082d9767dd4)) ([Diego Henrique Domingues](https://github.com/ddomingues)) |
| 16 |
|
| 17 |
### Maintenance Improvements |
| 18 |
|
| 19 |
- Bump dependencies ([48cac7c](https://github.com/medikoo/ncjsm/commit/48cac7ccc312dd58bee7559b9214fc13f78910b5)) |
| 20 |
- Fix `.editorconfig` ([3300948](https://github.com/medikoo/ncjsm/commit/3300948b2f5d724df9d5efb14ebb0101f1a37691)) |
| 21 |
- Upgrade `lint-staged` to v13 ([a6e6a8f](https://github.com/medikoo/ncjsm/commit/a6e6a8f2573a741a081dde9e32555aec140be73c)) |
| 22 |
|
| 23 |
## [4.3.0](https://github.com/medikoo/ncjsm/compare/v4.2.0...v4.3.0) (2022-01-24) |
| 24 |
|
| 25 |
### Features |
| 26 |
|
| 27 |
- Support async callback in `requireUncached` ([91fdb82](https://github.com/medikoo/ncjsm/commit/91fdb82b171651ff5740a3d6e6a12f632415e0e9)) |
| 28 |
|
| 29 |
## [4.2.0](https://github.com/medikoo/ncjsm/compare/v4.1.0...v4.2.0) (2021-04-30) |
| 30 |
|
| 31 |
### Features |
| 32 |
|
| 33 |
- **Require Uncached:** Support clearing all require cache for callback ([75c2229](https://github.com/medikoo/ncjsm/commit/75c2229854885e257fdd061699600208d438b561)) |
| 34 |
|
| 35 |
## [4.1.0](https://github.com/medikoo/ncjsm/compare/v4.0.1...v4.1.0) (2020-07-22) |
| 36 |
|
| 37 |
### Features |
| 38 |
|
| 39 |
- `ignoreExternal` option for `getDependencies` ([158075b](https://github.com/medikoo/ncjsm/commit/158075bea3f66ac77bae5341fd474930172047a2)) |
| 40 |
|
| 41 |
### [4.0.1](https://github.com/medikoo/ncjsm/compare/v4.0.0...v4.0.1) (2019-10-25) |
| 42 |
|
| 43 |
### Bug Fixes |
| 44 |
|
| 45 |
- Fix main module resolution in case pkg.main leads to broken path ([331dd1c](https://github.com/medikoo/ncjsm/commit/331dd1c)) |
| 46 |
|
| 47 |
### Tests |
| 48 |
|
| 49 |
- Add missing test ([2469fe9](https://github.com/medikoo/ncjsm/commit/2469fe9)) |
| 50 |
|
| 51 |
## [4.0.0](https://github.com/medikoo/ncjsm/compare/v3.0.0...v4.0.0) (2019-10-08) |
| 52 |
|
| 53 |
### Bug Fixes |
| 54 |
|
| 55 |
- Fix requireUncached moduleIds validation ([eb2e026](https://github.com/medikoo/ncjsm/commit/eb2e026)) |
| 56 |
|
| 57 |
### Features |
| 58 |
|
| 59 |
- By default crash resolve with MODULE_NOT_FOUND if module not found ([0e446c4](https://github.com/medikoo/ncjsm/commit/0e446c4)) |
| 60 |
|
| 61 |
### BREAKING CHANGES |
| 62 |
|
| 63 |
- `resolve` and `resolve/sync` now by default crash with MODULE_NOT_FOUND error, if module is not found. Old behavior was that `null` was returned. |
| 64 |
To maintain old behavior { silent: true } option needs to be passed |
| 65 |
|
| 66 |
## [3.0.0](https://github.com/medikoo/ncjsm/compare/v2.3.0...v3.0.0) (2019-09-02) |
| 67 |
|
| 68 |
### Features |
| 69 |
|
| 70 |
- Change resolve return value format ([747493e](https://github.com/medikoo/ncjsm/commit/747493e)) |
| 71 |
- Expose realPath on resolve return object ([5ad6b23](https://github.com/medikoo/ncjsm/commit/5ad6b23)) |
| 72 |
|
| 73 |
### Tests |
| 74 |
|
| 75 |
- Configure directory links tests ([988c92a](https://github.com/medikoo/ncjsm/commit/988c92a)) |
| 76 |
- Cover symlink cases in resolve tests ([c97d4a0](https://github.com/medikoo/ncjsm/commit/c97d4a0)) |
| 77 |
- Fix symlink type ([a371ed0](https://github.com/medikoo/ncjsm/commit/a371ed0)) |
| 78 |
- Improve naming ([81785d6](https://github.com/medikoo/ncjsm/commit/81785d6)) |
| 79 |
- Improve var name ([523498a](https://github.com/medikoo/ncjsm/commit/523498a)) |
| 80 |
- Improve var naming ([e48b5f0](https://github.com/medikoo/ncjsm/commit/e48b5f0)) |
| 81 |
- Maintain support for Node.js v6 ([3341664](https://github.com/medikoo/ncjsm/commit/3341664)) |
| 82 |
- Make symlink tests portable to windows ([0b57b2a](https://github.com/medikoo/ncjsm/commit/0b57b2a)) |
| 83 |
- Refactor to async/await ([6f20188](https://github.com/medikoo/ncjsm/commit/6f20188)) |
| 84 |
- Rename util ([55a6d6f](https://github.com/medikoo/ncjsm/commit/55a6d6f)) |
| 85 |
- Skip symlink tests if not capable to create them ([53cc946](https://github.com/medikoo/ncjsm/commit/53cc946)) |
| 86 |
|
| 87 |
### BREAKING CHANGES |
| 88 |
|
| 89 |
- 'resolve', and 'resolve/sync' utils now resolve with objects that |
| 90 |
expose path on `targetPath` property |
| 91 |
(so far path was returned directly) |
| 92 |
|
| 93 |
# [2.3.0](https://github.com/medikoo/ncjsm/compare/v2.2.0...v2.3.0) (2019-04-30) |
| 94 |
|
| 95 |
### Features |
| 96 |
|
| 97 |
- improve validation in isModuleNotFoundError ([8b2e641](https://github.com/medikoo/ncjsm/commit/8b2e641)) |
| 98 |
|
| 99 |
# [2.2.0](https://github.com/medikoo/ncjsm/compare/v2.1.0...v2.2.0) (2019-04-30) |
| 100 |
|
| 101 |
### Bug Fixes |
| 102 |
|
| 103 |
- Fix isModuleNotFound crash in Node.js v12 ([c9b9cc8](https://github.com/medikoo/ncjsm/commit/c9b9cc8)) |
| 104 |
|
| 105 |
### Features |
| 106 |
|
| 107 |
- Bring ES3 support to isModuleNotFoundError ([e6d0132](https://github.com/medikoo/ncjsm/commit/e6d0132)) |
| 108 |
|
| 109 |
# [2.1.0](https://github.com/medikoo/ncjsm/compare/v2.0.1...v2.1.0) (2019-04-18) |
| 110 |
|
| 111 |
### Features |
| 112 |
|
| 113 |
- support ignoreMissing option in getDependencies ([20baf14](https://github.com/medikoo/ncjsm/commit/20baf14)) |
| 114 |
|
| 115 |
## [2.0.1](https://github.com/medikoo/ncjsm/compare/v2.0.0...v2.0.1) (2019-03-18) |
| 116 |
|
| 117 |
### Bug Fixes |
| 118 |
|
| 119 |
- ensure ES5 support in requireUncached ([bab908d](https://github.com/medikoo/ncjsm/commit/bab908d)) |
| 120 |
|
| 121 |
# [2.0.0](https://github.com/medikoo/ncjsm/compare/v1.6.0...v2.0.0) (2019-03-12) |
| 122 |
|
| 123 |
### Features |
| 124 |
|
| 125 |
- improve resolution of dynamic requires ([fa1457b](https://github.com/medikoo/ncjsm/commit/fa1457b)) |
| 126 |
|
| 127 |
### reafactor |
| 128 |
|
| 129 |
- convert to ES2015 ([ed2aa37](https://github.com/medikoo/ncjsm/commit/ed2aa37)) |
| 130 |
|
| 131 |
### BREAKING CHANGES |
| 132 |
|
| 133 |
- Drop support for Node.js v4 and below |
| 134 |
|
| 135 |
# [1.6.0](https://github.com/medikoo/ncjsm/compare/v1.5.0...v1.6.0) (2019-02-07) |
| 136 |
|
| 137 |
### Features |
| 138 |
|
| 139 |
- rename cjs-module to ncjsm ([743b95c](https://github.com/medikoo/ncjsm/commit/743b95c)) |
| 140 |
|
| 141 |
<a name="1.5.0"></a> |
| 142 |
|
| 143 |
# [1.5.0](https://github.com/medikoo/cjs-module/compare/v1.4.1...v1.5.0) (2018-12-28) |
| 144 |
|
| 145 |
### Features |
| 146 |
|
| 147 |
- improve error messaging ([ca04d59](https://github.com/medikoo/cjs-module/commit/ca04d59)) |
| 148 |
|
| 149 |
<a name="1.4.1"></a> |
| 150 |
|
| 151 |
## [1.4.1](https://github.com/medikoo/cjs-module/compare/v1.4.0...v1.4.1) (2018-12-28) |
| 152 |
|
| 153 |
<a name="1.4.0"></a> |
| 154 |
|
| 155 |
# [1.4.0](https://github.com/medikoo/cjs-module/compare/v1.3.1...v1.4.0) (2018-09-14) |
| 156 |
|
| 157 |
### Features |
| 158 |
|
| 159 |
- isModuleNotFoundError util ([130b066](https://github.com/medikoo/cjs-module/commit/130b066)) |
| 160 |
|
| 161 |
<a name="1.3.1"></a> |
| 162 |
|
| 163 |
## [1.3.1](https://github.com/medikoo/cjs-module/compare/v1.3.0...v1.3.1) (2018-07-26) |
| 164 |
|
| 165 |
### Bug Fixes |
| 166 |
|
| 167 |
- ensure full isolation in require-uncached ([090eede](https://github.com/medikoo/cjs-module/commit/090eede)) |
| 168 |
|
| 169 |
<a name="1.3.0"></a> |
| 170 |
|
| 171 |
# [1.3.0](https://github.com/medikoo/cjs-module/compare/v1.2.2...v1.3.0) (2018-05-14) |
| 172 |
|
| 173 |
### Features |
| 174 |
|
| 175 |
- requireUncached util ([1f79012](https://github.com/medikoo/cjs-module/commit/1f79012)) |
| 176 |
|
| 177 |
<a name="1.2.2"></a> |
| 178 |
|
| 179 |
## [1.2.2](https://github.com/medikoo/cjs-module/compare/v1.2.1...v1.2.2) (2017-09-18) |
| 180 |
|
| 181 |
### Bug Fixes |
| 182 |
|
| 183 |
- resolution of dirs referenced in main of package.json ([455ce5a](https://github.com/medikoo/cjs-module/commit/455ce5a)) |
| 184 |
|
| 185 |
<a name="1.2.1"></a> |
| 186 |
|
| 187 |
## [1.2.1](https://github.com/medikoo/cjs-module/compare/v1.2.0...v1.2.1) (2017-06-20) |
| 188 |
|
| 189 |
### Bug Fixes |
| 190 |
|
| 191 |
- ensure to not resolve builtin modules ([1107e40](https://github.com/medikoo/cjs-module/commit/1107e40)) |
| 192 |
|
| 193 |
<a name="1.2.0"></a> |
| 194 |
|
| 195 |
# [1.2.0](https://github.com/medikoo/cjs-module/compare/v1.1.0...v1.2.0) (2017-06-16) |
| 196 |
|
| 197 |
### Features |
| 198 |
|
| 199 |
- getDependencies utility ([af1c3d0](https://github.com/medikoo/cjs-module/commit/af1c3d0)) |
| 200 |
|
| 201 |
### Bug Fixes |
| 202 |
|
| 203 |
- ensure proper tests resolution on windows ([4e4960b](https://github.com/medikoo/cjs-module/commit/4e4960b)) |
| 204 |
|
| 205 |
## Old Changelog |
| 206 |
|
| 207 |
See `CHANGES` |