Urlcat Versions Save

A URL builder library for JavaScript.

v3.1.0

1 year ago

urlcat 3.1.0

Summary

Support ESM and CJS in an interoperable way.

This is a minor release which means that:

  • there are no breaking changes
  • there are new features

How to install

npm install urlcat

v3.0.0

1 year ago

urlcat 3.0.0

Summary

Use qs for more advanced and configurable query string generation.

This is a major release which means that:

  • there are breaking changes
  • you test your project carefully after upgrading

How to install

npm install urlcat

v2.0.4

3 years ago

urlcat 2.0.4

Summary

Because path parameter validation was too strict in the previous version, urlcat would fail for paths containing a port number. This release fixes this bug.

This is a patch release which means that:

  • there are no breaking changes
  • there are no new features

Changelog

  • Allow port numbers in the base template

How to install

npm install urlcat

v2.0.3

3 years ago

urlcat 2.0.3

Summary

This release fixes two bugs where nonsensical parameter values were accepted.

This is a patch release which means that:

  • there are no breaking changes
  • there are no new features

Changelog

  • Restrict the allowed types of path parameters to string, number and boolean
  • Don't allow missing, null or undefined path parameters

How to install

npm install urlcat

v2.0.2

3 years ago

urlcat 2.0.2

Summary

This release fixes a bug where '//' could not be passed as the path template.

This is a patch release which means that:

  • there are no breaking changes
  • there are no new features

Changelog

  • Fix #7 ('//' cannot be used as path template)

How to install

npm install urlcat

v2.0.1

3 years ago

urlcat 2.0.1

Summary

This release fixes a bug in the urlcat(pathTemplate, params) overload and makes it usable again.

This is a patch release which means that:

  • there are no breaking changes
  • there are no new features

Changelog

  • Fix urlcat(pathTemplate, params) overload

How to install

npm install urlcat

v2.0.0

3 years ago

urlcat 2.0.0

Summary

A major internal refactoring, a bugfix and some minor but breaking changes.

This is a major release which means that it contains breaking changes.

Changelog

  • Use URL and URLSearchParams internally
  • Breaking change: basePath and baseTemplate parameters are validated. If they are not valid URLs (baseTemplate is validated after path param substitution), an error is thrown.
  • Breaking change: The query string is now escaped correctly which means that spaces are escaped using + instead of %20.

How to install

npm install urlcat

v1.0.1

3 years ago

urlcat 1.0.1

Summary

This release allows the project to support older Node versions. We can officially support Node 10 and above (mocha doesn't run on older versions and we don't want to downgrade). Older versions might work but are not officially supported.

This is a patch release which means that:

  • there are no breaking changes
  • there are no new features.

Changelog

  • Avoid using Object.fromEntries to support older Node versions

How to install

npm install urlcat

v1.0.0

3 years ago

This is the first production-ready release. It contains a complete overhaul of the API (which is why this is a major version). After this, the API should be fairly stable; I don't see any big changes coming.

Zip/tar.gz/CDN releases are not yet supported, please install using npm:

npm install --save urlcat