|
| 1 | +--- |
| 2 | +title: Monthly updates (January 2024) |
| 3 | +description: 21 releases this month! What's new in the UnJS ecosystem? |
| 4 | +authors: |
| 5 | + - name: |
| 6 | + picture: |
| 7 | + twitter: |
| 8 | +category: |
| 9 | + - releases |
| 10 | +packages: |
| 11 | + - defu |
| 12 | + - get-port-please |
| 13 | + - h3 |
| 14 | + - ipx |
| 15 | + - listhen |
| 16 | + - magicast |
| 17 | + - mlly |
| 18 | + - nypm |
| 19 | + - pathe |
| 20 | + - scule |
| 21 | + - unenv |
| 22 | + - unhead |
| 23 | + - untyped |
| 24 | + - unwasm |
| 25 | +publishedAt: 2024-01-28T09:57:59.440Z |
| 26 | +modifiedAt: 2024-01-28T09:57:59.440Z |
| 27 | +--- |
| 28 | + |
| 29 | +## defu |
| 30 | + |
| 31 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 32 | + |
| 33 | +- [v6.1.4](https://github.com/unjs/defu/releases/tag/v6.1.4) |
| 34 | + |
| 35 | +### fixes |
| 36 | + |
| 37 | +- Merge objects with `Module` type ([#121](https://github.com/unjs/defu/pull/121)) |
| 38 | + |
| 39 | +### refactors |
| 40 | + |
| 41 | +- Move `isPlainObject` to `_utils` to allow testing ([e922a16](https://github.com/unjs/defu/commit/e922a16)) |
| 42 | +- Make `isPlainObject` logic more readable ([e458b63](https://github.com/unjs/defu/commit/e458b63)) |
| 43 | + |
| 44 | +### documentation |
| 45 | + |
| 46 | +- Fix typo ([#116](https://github.com/unjs/defu/pull/116)) |
| 47 | + |
| 48 | +## get-port-please |
| 49 | + |
| 50 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 51 | + |
| 52 | +- [v3.1.2](https://github.com/unjs/get-port-please/releases/tag/v3.1.2) |
| 53 | + |
| 54 | +### fixes |
| 55 | + |
| 56 | +- Accept ipv6 as valid hostname ([d537a51](https://github.com/unjs/get-port-please/commit/d537a51)) |
| 57 | +- Use closed ranges as port ranges ([#66](https://github.com/unjs/get-port-please/pull/66)) |
| 58 | +- Ranges now work even if port is unset in options ([#72](https://github.com/unjs/get-port-please/pull/72)) |
| 59 | +- Don't use a random port by default if the user specified any port ([#65](https://github.com/unjs/get-port-please/pull/65)) |
| 60 | + |
| 61 | +### refactors |
| 62 | + |
| 63 | +- Correct typos in `GetPortError` message ([#77](https://github.com/unjs/get-port-please/pull/77)) |
| 64 | +- Fix typo in error message ([#73](https://github.com/unjs/get-port-please/pull/73)) |
| 65 | +- Improve log when using alternative port ([#78](https://github.com/unjs/get-port-please/pull/78)) |
| 66 | +- Update fallback message ([1f45050](https://github.com/unjs/get-port-please/commit/1f45050)) |
| 67 | + |
| 68 | +## h3 |
| 69 | + |
| 70 | +This month, we release 2 new releases (0 major release, 1 minor release and 1 patch release): |
| 71 | + |
| 72 | +- [v1.10.1](https://github.com/unjs/h3/releases/tag/v1.10.1) |
| 73 | +- [v1.10.0](https://github.com/unjs/h3/releases/tag/v1.10.0) |
| 74 | + |
| 75 | +### fixes |
| 76 | + |
| 77 | +- **setResponseHeaders:** Fix types to allow partial header names ([#607](https://github.com/unjs/h3/pull/607)) |
| 78 | +- **setCookie:** Allow cookies with the same name but different options ([#606](https://github.com/unjs/h3/pull/606)) |
| 79 | +- **getRequestWebStream:** Reuse buffered body if available ([#616](https://github.com/unjs/h3/pull/616)) |
| 80 | +- **getSession:** Use semaphore lock for unseal operation ([#612](https://github.com/unjs/h3/pull/612)) |
| 81 | +- **getRequestIP:** Use first address of `x-forwarded-for` header ([#618](https://github.com/unjs/h3/pull/618)) |
| 82 | +- Avoid setting default `content-type` for responses with 304 status ([#641](https://github.com/unjs/h3/pull/641)) |
| 83 | + |
| 84 | +### refactors |
| 85 | + |
| 86 | +- Use `H3Event.node.res` for internal types ([#626](https://github.com/unjs/h3/pull/626)) |
| 87 | + |
| 88 | +### documentation |
| 89 | + |
| 90 | +- Fix `getRequestHeaders` signuture ([#613](https://github.com/unjs/h3/pull/613)) |
| 91 | +- Fix typo in examples ([#631](https://github.com/unjs/h3/pull/631)) |
| 92 | + |
| 93 | +### enhancements |
| 94 | + |
| 95 | +- **validate:** Provide validate error in `data` ([#594](https://github.com/unjs/h3/pull/594)) |
| 96 | +### fixes |
| 97 | +- **readRawBody:** Check `req.rawBody` before `req.body` ([#604](https://github.com/unjs/h3/pull/604)) |
| 98 | +### documentation |
| 99 | +- Add `h3-compression` to community packages ([#524](https://github.com/unjs/h3/pull/524)) |
| 100 | +- Add examples ([#539](https://github.com/unjs/h3/pull/539)) |
| 101 | + |
| 102 | +### types |
| 103 | + |
| 104 | +- Add generics to `isError` and update `DataT` default generic param ([#582](https://github.com/unjs/h3/pull/582)) |
| 105 | +- **setResponseHeaders:** Add autocompletion for header names ([#601](https://github.com/unjs/h3/pull/601)) |
| 106 | + |
| 107 | +## ipx |
| 108 | + |
| 109 | +This month, we release 2 new releases (1 major release, 1 minor release and 0 patch release): |
| 110 | + |
| 111 | +- [v3.0.0](https://github.com/unjs/ipx/releases/tag/v3.0.0) |
| 112 | +- [v2.1.0](https://github.com/unjs/ipx/releases/tag/v2.1.0) |
| 113 | + |
| 114 | +### enhancements |
| 115 | + |
| 116 | +- **node-fs:** Add support for multiple dirs ([#203](https://github.com/unjs/ipx/pull/203)) |
| 117 | + |
| 118 | +### fixes |
| 119 | + |
| 120 | +- Missing `maxAge` default ([#197](https://github.com/unjs/ipx/pull/197)) |
| 121 | +- **server:** Set `cache-control` header only after processing image ([#200](https://github.com/unjs/ipx/pull/200)) |
| 122 | +- Improve data parsing for unstorage ([#204](https://github.com/unjs/ipx/pull/204)) |
| 123 | + |
| 124 | +### refactors |
| 125 | + |
| 126 | +- Jpeg progressive setting via sharpOptions ([#198](https://github.com/unjs/ipx/pull/198)) |
| 127 | + |
| 128 | +## listhen |
| 129 | + |
| 130 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 131 | + |
| 132 | +- [v1.5.6](https://github.com/unjs/listhen/releases/tag/v1.5.6) |
| 133 | + |
| 134 | +### fixes |
| 135 | + |
| 136 | +- Apply default `localhost` in internal `generateURL` util ([6c76d31](https://github.com/unjs/listhen/commit/6c76d31)) |
| 137 | +- **dev:** Fix absolute paths imports on windows ([#142](https://github.com/unjs/listhen/pull/142)) |
| 138 | + |
| 139 | +### documentation |
| 140 | + |
| 141 | +- Update h3 example ([#147](https://github.com/unjs/listhen/pull/147)) |
| 142 | +- Fix h3 example ([#150](https://github.com/unjs/listhen/pull/150)) |
| 143 | + |
| 144 | +## magicast |
| 145 | + |
| 146 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 147 | + |
| 148 | +- [v0.3.3](https://github.com/unjs/magicast/releases/tag/v0.3.3) |
| 149 | + |
| 150 | +### enhancements |
| 151 | + |
| 152 | +- Support `ArrowFunctionExpression` ([#98](https://github.com/unjs/magicast/pull/98)) |
| 153 | + |
| 154 | +## mlly |
| 155 | + |
| 156 | +This month, we release 1 new release (0 major release, 1 minor release and 0 patch release): |
| 157 | + |
| 158 | +- [v1.5.0](https://github.com/unjs/mlly/releases/tag/v1.5.0) |
| 159 | + |
| 160 | +### enhancements |
| 161 | + |
| 162 | +- Strip comment for syntax detection with `stripComments` option ([#196](https://github.com/unjs/mlly/pull/196)) ([#217](https://github.com/unjs/mlly/pull/217)) |
| 163 | +- **findExports:** Extract name of default exports ([#179](https://github.com/unjs/mlly/pull/179)) |
| 164 | +- **interopDefault:** Support `preferNamespace` ([5d23c98](https://github.com/unjs/mlly/commit/5d23c98)) |
| 165 | + |
| 166 | +### fixes |
| 167 | + |
| 168 | +- **analyze:** Ignore comments for imports detection ([#155](https://github.com/unjs/mlly/pull/155)) |
| 169 | +- **lookupNodeModuleSubpath:** Handle conditions and nested exports ([#210](https://github.com/unjs/mlly/pull/210)) |
| 170 | +- **analyze:** Allow `import` statement after `}` ([#166](https://github.com/unjs/mlly/pull/166)) |
| 171 | +- **interopDefault:** Skip nullish values for `default` and explicitly return non-objects as-is ([14eb72d](https://github.com/unjs/mlly/commit/14eb72d)) |
| 172 | +- **findExports:** Support multiple variables in single export ([#211](https://github.com/unjs/mlly/pull/211)) |
| 173 | + |
| 174 | +### types |
| 175 | + |
| 176 | +- **fileURLToPath:** Accept url as input ([34f6026](https://github.com/unjs/mlly/commit/34f6026)) |
| 177 | + |
| 178 | +## nypm |
| 179 | + |
| 180 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 181 | + |
| 182 | +- [v0.3.6](https://github.com/unjs/nypm/releases/tag/v0.3.6) |
| 183 | + |
| 184 | +### enhancements |
| 185 | + |
| 186 | +- Allow installing multiple dependencies ([#107](https://github.com/unjs/nypm/pull/107)) |
| 187 | + |
| 188 | +## pathe |
| 189 | + |
| 190 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 191 | + |
| 192 | +- [v1.1.2](https://github.com/unjs/pathe/releases/tag/v1.1.2) |
| 193 | + |
| 194 | +### fixes |
| 195 | + |
| 196 | +- Trim root folder `/` when calculating relative paths ([#142](https://github.com/unjs/pathe/pull/142)) |
| 197 | +- Check `process.cwd` before calling it ([#147](https://github.com/unjs/pathe/pull/147)) |
| 198 | +- Uppercase windows drive letters ([#151](https://github.com/unjs/pathe/pull/151)) |
| 199 | +- **resolveAlias:** Handle aliases ending with trailing slash ([#155](https://github.com/unjs/pathe/pull/155)) |
| 200 | +- **relative:** Handle different windows drive letters ([#158](https://github.com/unjs/pathe/pull/158)) |
| 201 | + |
| 202 | +## scule |
| 203 | + |
| 204 | +This month, we release 1 new release (0 major release, 1 minor release and 0 patch release): |
| 205 | + |
| 206 | +- [v1.2.0](https://github.com/unjs/scule/releases/tag/v1.2.0) |
| 207 | + |
| 208 | +### enhancements |
| 209 | + |
| 210 | +- Add `flatCase` and `trainCase` ([#68](https://github.com/unjs/scule/pull/68)) |
| 211 | + |
| 212 | +### fixes |
| 213 | + |
| 214 | +- **isUppercase:** Assume characters lowercase by default ([#71](https://github.com/unjs/scule/pull/71)) |
| 215 | + |
| 216 | +## unenv |
| 217 | + |
| 218 | +This month, we release 1 new release (0 major release, 1 minor release and 0 patch release): |
| 219 | + |
| 220 | +- [v1.9.0](https://github.com/unjs/unenv/releases/tag/v1.9.0) |
| 221 | + |
| 222 | +### enhancements |
| 223 | + |
| 224 | +- Experimental deno preset ([#155](https://github.com/unjs/unenv/pull/155)) |
| 225 | +- Experimental cloudflare preset ([#156](https://github.com/unjs/unenv/pull/156)) |
| 226 | +- Experimental vercel preset ([#157](https://github.com/unjs/unenv/pull/157)) |
| 227 | +- **deno:** Add `process.env` polyfill ([a34f3e0](https://github.com/unjs/unenv/commit/a34f3e0)) |
| 228 | + |
| 229 | +## unhead |
| 230 | + |
| 231 | +This month, we release 1 new release (0 major release, 0 minor release and 1 patch release): |
| 232 | + |
| 233 | +- [v1.8.10](https://github.com/unjs/unhead/releases/tag/v1.8.10) |
| 234 | + |
| 235 | +### bug fixes |
| 236 | + |
| 237 | +- **schema-org:** avoid re-casting valid w3c date times ([bc363b2](https://github.com/unjs/unhead/commit/bc363b2)), closes [#296](https://github.com/unjs/unhead/issues/296) |
| 238 | +- mark `VueHeadMixin` as not deprecated ([6089dfc](https://github.com/unjs/unhead/commit/6089dfc)), closes [#291](https://github.com/unjs/unhead/issues/291) |
| 239 | +- useScript missing script API's return in proxy ([#302](https://github.com/unjs/unhead/issues/302)) ([c42c57d](https://github.com/unjs/unhead/commit/c42c57d)) |
| 240 | +- **ssr:** `omitLineBreaks` option ([#297](https://github.com/unjs/unhead/issues/297)) ([85bc860](https://github.com/unjs/unhead/commit/85bc860)) |
| 241 | + |
| 242 | +## untyped |
| 243 | + |
| 244 | +This month, we release 2 new releases (0 major release, 0 minor release and 2 patch releases): |
| 245 | + |
| 246 | +- [v1.4.2](https://github.com/unjs/untyped/releases/tag/v1.4.2) |
| 247 | +- [v1.4.1](https://github.com/unjs/untyped/releases/tag/v1.4.1) |
| 248 | + |
| 249 | +### fixes |
| 250 | + |
| 251 | +- Make sure leading comments have value before assigning ([7a94141](https://github.com/unjs/untyped/commit/7a94141)) |
| 252 | + |
| 253 | +### types |
| 254 | + |
| 255 | +- Improve types for `$resolve` function ([#97](https://github.com/unjs/untyped/pull/97)) |
| 256 | + |
| 257 | +## unwasm |
| 258 | + |
| 259 | +This month, we release 5 new releases (0 major release, 0 minor release and 5 patch releases): |
| 260 | + |
| 261 | +- [v0.3.7](https://github.com/unjs/unwasm/releases/tag/v0.3.7) |
| 262 | +- [v0.3.6](https://github.com/unjs/unwasm/releases/tag/v0.3.6) |
| 263 | +- [v0.3.5](https://github.com/unjs/unwasm/releases/tag/v0.3.5) |
| 264 | +- [v0.3.4](https://github.com/unjs/unwasm/releases/tag/v0.3.4) |
| 265 | +- [v0.3.3](https://github.com/unjs/unwasm/releases/tag/v0.3.3) |
| 266 | + |
| 267 | +### fixes |
| 268 | + |
| 269 | +- **plugin:** Allow mixed exports for top level binding ([1c4efcd](https://github.com/unjs/unwasm/commit/1c4efcd)) |
| 270 | + |
| 271 | +### enhancements |
| 272 | + |
| 273 | +- Automatically provide imports object using import map ([#11](https://github.com/unjs/unwasm/pull/11)) |
0 commit comments