Releases: unjs/ipx
Releases · unjs/ipx
Release list
v4.0.0-beta.1
🚀 Enhancements
- Add
unflattenhandler (#248) - server: Add
parseURLoption to customize URL parsing (#320) - server: Answer etag revalidation before image processing (52d0000)
- server: Send
X-Content-Type-Options: nosniffheader (85290d9) - handlers: Add
opacityand the missing sharp operation modifiers (#322) - http: Support opt-in
blockPrivateIPs(f23c374) - fs:
⚠️ Reject symlinks resolving outside the served dir (488fcf5)
🩹 Fixes
- handlers: Parse all modulate args and add lightness (#317)
- Use svg pass-thru when requested format is
svg(#262) - Add
extendWitharg to extend modifier (#315) ⚠️ Always sanitize svg sources (#319)- handlers: Validate all modifier arguments (#321)
- handlers: Clamp output dimensions with
maxOutputDimensionoption (013c144) - storage/http: Return 400 for unparseable ids instead of 500 (aeaae5b)
- storage/http:
⚠️ Only follow redirects within the domain allowlist (97e6eb7) - ipx: Compare handler
ordernumerically when sorting (9446f68) - handlers: Apply
maxOutputDimensiontoextendafter a resize (5606f0f) - fs: Dir fall-through and
maxAgehandling (933b0d6) - fs: Accept non-JSON env values and guard
processaccess (725a63c)
💅 Refactors
- Use
node:path(c73f3c1)
📖 Documentation
- Add samples (5204d9c)
📦 Build
- Add
enginesfield topackage.json(c7227fb)
🤖 CI
- Run tests on macos and windows too (8ddca9b)
❤️ Contributors
- Pooya Parsa (@pi0)
- Damian Głowala (@DamianGlowala])
- Simon Garner (@sgarner)
- Nathan Chase (@nathanchase)
v4.0.0-alpha.2
🩹 Fixes
- handlers: Preserve non-JSON string modifier values in VArg (#290)
🏡 Chore
- Update sharp and other deps (ef6973d)
❤️ Contributors
- Alexander Synaptic (@xsynaptic)
v4.0.0-alpha.1
IPX v4 is now ESM-only and comes with significant dependency size reductions (v3 vs v4 alpha).
Internal H3 has been upgraded to v2, bringing native Web API compatibility and the new srvx layer for native performance with Node.js support.
Migration
- The server creation APIs have changed. See the Programmatic API section for examples.
- The JSON error format has changed from
{ error: string }to{ status, statusText, message }. - The
svgooption is nowsvg.optimize. SVG images are always sanitized, even when optimization is disabled. - SVG optimization now applies SVGO's
preset-defaultunless custompluginsare configured (previously only the configured plugins ran), so SVG output is restructured more than before. See the SVG Images section.
v3.1.1
v2.1.1
v1.3.2
v3.1.0
📦 Dependencies
✅ Tests
- Increase coverage (#260)
❤️ Contributors
- Pooya Parsa (@pi0)
- Kanon (@ysknsid25)
- Maxime Pauvert (@maximepvrt)
- Seth Falco (@SethFalco)
v3.0.3
🩹 Fixes
- Correctly handle
format_auto,animated(#235)
📖 Documentation
- Added jsdocs to exported functions and types (#222)
❤️ Contributors
- Max (@onmax)
- James Wragg james.wragg@madgex.com
v3.0.1
v3.0.0
IPX v3 is upgraded with sharp ^0.33 with major installation enhancements. See lovell/sharp#3750 for more info.