0.0.2
Features
- TypeScript: type-definitions #6
Bug fixes
- fromString(): version is used outside of block scope #5
- fromString(): qualifiers extracted as string, constructor expects object #7
BREAKING CHANGES
- the main module previously exported the PackageURL class directly
- this prevents that additional classes can be added in the future and doesn't work nicely together with the ES6 module system
- the root module now exports an object containing the classes
Before
const PackageURL = require('packageurl-js');
After
const PackageURL = require('packageurl-js').PackageURL;
// or
const { PackageURL } = require('packageurl-js');
// or ES6 / Typescript
import { PackageURL } from 'packageurl-js';