Skip to content

Releases: fatfisz/resolve-url.macro

v1.0.1

Choose a tag to compare

@fatfisz fatfisz released this 02 Sep 22:14

This version has an important bugfix for resolveUrl.withQuery, which was not working in v1.0.0. Because of that v1.0.0 is deprecated and this version (or newer one) should be used instead.

v1.0.0 - The first major release!

Choose a tag to compare

@fatfisz fatfisz released this 02 Sep 01:27

resolve-url.macro has been used at Codility in production for several months already, without any problems. The only small annoyance was a need to combine query with resolved URLs separately. With this major version, a new feature is introduced:

resolveUrl.withQuery(urlName, ...parameter, query)

A query string constructed from the query object argument will be attached at the end of the resolved URL. Red the docs for more info!

v0.0.4

Choose a tag to compare

@fatfisz fatfisz released this 02 Sep 01:23

Allow optional parameters

Parameters can be made optional by including different versions of URLs with the same name. Such URLs have to have a different number of arguments, e.g.

[
  {
    name: 'optional-param',
    template: 'params/optional/',
  },
  {
    name: 'optional-param',
    template: 'params/optional/${id}/',
  }
]

v0.0.3

Choose a tag to compare

@fatfisz fatfisz released this 18 Jan 18:17

Add cooked

The cooked property was missing in the template literal constructor, which conflicted with babel-plugin-transform-ed2015-template-literals (even though raw is preferred in other places).

v0.0.2

Choose a tag to compare

@fatfisz fatfisz released this 14 Jan 12:58

The description and keywords were missing in package.json - fixed in this release.

v0.0.1

Choose a tag to compare

@fatfisz fatfisz released this 14 Jan 12:57

The initial release

The macro is in the experimental stage. It needs to be tested with some serious production code before it can proceed to v1.0.0.