Releases: YahooArchive/locator
updated debug version
[security issue] update semver module to latest
v1.2.0 Release v1.2.0.
Update to debug@2
v1.1.2 Release v1.1.2.
bugfix
jsnext support
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
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
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
- Do not override an existing promise implementation with
ypromise
. This opens up the possibility to use other promise libraries with Locator.
minor release
- Remove dependency on YUI. Use standalone
ypromise
for promises.
minor release
- Add support for custom names for each package bundle thru the
locator.name
entry inpackage.json
(pr #20)