npm sitemap 8.0.2
8.0.2 - Bug Fix Release

one day ago

🐛 Bug Fix Release

This release fixes issue #464 where xsi:schemaLocation attributes were incorrectly rejected by the custom namespace validator introduced in 8.0.1.

✅ Backward Compatibility

  • 100% API compatible with 8.0.1
  • No breaking changes
  • All existing code continues to work

🔧 Bug Fixes

#464 - Support xsi:schemaLocation in custom namespaces (thanks @dzakki)

  • Extended validation to accept namespace-qualified attributes like xsi:schemaLocation
  • Previously only xmlns:prefix="uri" format was accepted
  • Now also accepts prefix:attribute="value" format
  • Maintains all security validations from 8.0.1

📝 Example

The following now works correctly (as documented in README):

```javascript
const sms = new SitemapStream({
xmlns: {
custom: [
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"',
'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"'
]
}
});
```

📊 Testing

  • ✅ All tests passing (116 existing + 8 new tests)
  • ✅ Security regression tests added
  • ✅ TypeScript compilation successful

📝 Installation

```bash
npm install sitemap@8.0.2
```

See CHANGELOG.md for complete details.


🤖 Generated with Claude Code

Don't miss a new sitemap release

NewReleases is sending notifications on new releases.