- Fix decoding problems around the
%
character #75 (fix contributed by @jdalton)
- Significant refactor based on code from @jdalton
- Numerous bug fixes and improvements the community was asking for
- See closed issues and PRs for details (too many to list here)
- purls with + in versions are now valid #52 (contributed by @satanshiro)
- purl names staring with
:
are now accepted #45 (contributed by @aniruth37)
- Add
pub
parsing for Dart and Flutter packages (contributed by @topaztee)
- publish errors
- Verify entire version string is properly encoded (contributed by @mcombuechen, @topaztee)
- Normalize metafiles (contributed by @smorimoto)
- Bumped various dependencies
- Hardened encoding/decoding of URL special chars like
@
and#
#37
- Add enum-like static readonly property
KnownQualifierNames
to reflect known qualifier names #34
- Keep license texts in comment headers, even after minification #27
- Fix a bug in golang purls that was adding additional slashes to the string #30
- Properly replace all underscore values for PyPI packages #23
- update deps via
npm audit fix
- Handle forward slash in namespace for go purls
- Properly handle PyPI
purl
values per the purl-spec #18
- Properly handle
undefined
ornull
qualifier values #16
- TypeScript: type-definitions #6
Bug fixes
- fromString(): version is used outside of block scope #5
- fromString(): qualifiers extracted as string, constructor expects object #7
- 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';
- Initial release