Skip to content
This repository has been archived by the owner on May 25, 2019. It is now read-only.

Releases: YahooArchive/locator

updated debug version

08 Nov 15:27
Compare
Choose a tag to compare
  • (1f8ba84) updated debug dep to ^3.1.0

[security issue] update semver module to latest

09 Nov 21:19
Compare
Choose a tag to compare

Update to debug@2

28 Oct 22:43
Compare
Choose a tag to compare
v1.1.2

Release v1.1.2.

bugfix

22 Sep 22:28
Compare
Choose a tag to compare
  • PR #31: expands path to bundle using fs.realpathSync() for the internal
    registry to guarantee resolution when developing using symblinks to bundles.

jsnext support

20 Aug 22:27
Compare
Choose a tag to compare

PR #30:

Fixes #25 - logs

  • relied on debug() to log locator warnings
  • moved logic to dedupe duplicates into its own method for better testing

Fixes #27 - method deprecation:

* listAllResources() -> getAllResources()
* listBundleNames() -> getBundleNames()

PR #29:

Fixes #25 - support rulesets generation thru rulesetFn configuration

This will allow us to do something like:

var locator = new Locator({
    rulesetFn: function (bundle) {
        if (bundle.pkg && bundle.pkg['jsnext:main']) {
            return { /* create synthetic rules for ES6 packages */ };
        }
    }
});

Fixes filter behavior by allowing falsy filter value and empty object {} as filters that will pass for all files and resources, but fails if there is a key in the filter object that doesn't match extensions or types. You can now do:

locator.getBundleResources('foo'); // return all resources in bundle
locator.getBundleResources('foo', {}); // return all resources in bundle
locator.getBundleResources('foo', { crazy: 1 }); // return no resources
locator.getBundleResources('foo', { types: 'model' }); // return model resources

new api

12 Aug 20:04
Compare
Choose a tag to compare
  • locator.getBundleResources(): to filter resources per bundle. e.g.: this is used
    by consumers to collect all templates from a given bundle.
  • locator.getBundleFiles(): to filter files per bundle. e.g.: this is used by consumers
    to collect all css files from a given bundle.

major release

12 Aug 18:51
Compare
Choose a tag to compare

1.0.0

  • !IMPORTANT! This release contains a notable backward-incompatible change.
  • !Backwards-Incompatible Change! sync version of locator without plugins.
  • !Backwards-Incompatible Change! removed support for nodejs 0.8.x.

No more plugins

The support for plugins was removed, and therefore, any build process for files
and resources should happen as a separate routine. This new version of locator can
be used by grunt/gulp/broccoli tasks to apply custom builds based on the semantic
of the application, in it can also be used during the runtime process as part of
application code to get the semantic of the source files and resources.

minor release

12 Mar 20:38
Compare
Choose a tag to compare
  • Do not override an existing promise implementation with ypromise. This opens up the possibility to use other promise libraries with Locator.

minor release

20 Feb 15:51
Compare
Choose a tag to compare
  • Remove dependency on YUI. Use standalone ypromise for promises.

minor release

20 Feb 15:51
Compare
Choose a tag to compare
  • Add support for custom names for each package bundle thru the locator.name entry in package.json (pr #20)