Skip to content

Commit 34f666a

Browse files
committed
move package manager files during build process, update main paths
1 parent f4f2742 commit 34f666a

95 files changed

Lines changed: 4743 additions & 998 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,20 @@ $(BUILDDIR)/es/%.js: lib/%.js
7575
test-build:
7676
mocha support/build.test.js
7777

78-
.PHONY: build-modules build-bundle build-dist build-es test-build
78+
build-config: $(BUILDDIR)/package.json $(BUILDDIR)/component.json $(BUILDDIR)/bower.json $(BUILDDIR)/README.md $(BUILDDIR)/LICENSE $(BUILDDIR)/CHANGELOG.md
7979

80-
build: clean build-bundle build-dist build-es test-build
80+
bower.json: package.json
81+
support/sync-package-managers.js
82+
83+
component.json: package.json
84+
support/sync-package-managers.js
85+
86+
$(BUILDDIR)/%: %
87+
cp $< $@
88+
89+
.PHONY: build-modules build-bundle build-dist build-es build-config test-build
90+
91+
build: clean build-bundle build-dist build-es build-config test-build
8192

8293
.PHONY: test lint build all clean
8394

bower.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,52 @@
11
{
22
"name": "async",
33
"description": "Higher-order functions and common patterns for asynchronous code",
4-
"main": "lib/async.js",
4+
"main": "index.js",
55
"keywords": [
66
"async",
77
"callback",
8-
"utility",
9-
"module"
8+
"module",
9+
"utility"
1010
],
1111
"license": "MIT",
1212
"repository": {
1313
"type": "git",
1414
"url": "https://github.com/caolan/async.git"
1515
},
1616
"devDependencies": {
17+
"babel-cli": "^6.3.17",
18+
"babel-core": "^6.3.26",
19+
"babel-plugin-add-module-exports": "~0.1.2",
20+
"babel-plugin-transform-es2015-modules-commonjs": "^6.3.16",
21+
"babel-preset-es2015": "^6.3.13",
22+
"babelify": "^7.2.0",
1723
"benchmark": "bestiejs/benchmark.js",
1824
"bluebird": "^2.9.32",
1925
"chai": "^3.1.0",
2026
"coveralls": "^2.11.2",
2127
"es6-promise": "^2.3.0",
28+
"fs-extra": "^0.26.3",
29+
"gulp": "~3.9.0",
2230
"jscs": "^1.13.1",
2331
"jshint": "~2.8.0",
2432
"karma": "^0.13.2",
2533
"karma-browserify": "^4.2.1",
2634
"karma-firefox-launcher": "^0.1.6",
2735
"karma-mocha": "^0.2.0",
2836
"karma-mocha-reporter": "^1.0.2",
29-
"lodash": "^3.9.0",
30-
"mkdirp": "~0.5.1",
3137
"mocha": "^2.2.5",
3238
"native-promise-only": "^0.8.0-a",
3339
"nodeunit": ">0.0.0",
3440
"nyc": "^2.1.0",
41+
"recursive-readdir": "^1.3.0",
42+
"rimraf": "^2.5.0",
43+
"rollup": "^0.25.0",
44+
"rollup-plugin-npm": "~1.3.0",
3545
"rsvp": "^3.0.18",
3646
"semver": "^4.3.6",
3747
"uglify-js": "~2.4.0",
48+
"vinyl-buffer": "~1.0.0",
49+
"vinyl-source-stream": "~1.1.0",
3850
"xyz": "^0.5.0",
3951
"yargs": "~3.9.1"
4052
},
@@ -52,6 +64,5 @@
5264
],
5365
"authors": [
5466
"Caolan McMahon"
55-
],
56-
"version": "1.5.0"
57-
}
67+
]
68+
}

build/CHANGELOG.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
# v1.5.1
2+
- Fix issue with `pause` in `queue` with concurrency enabled (#946)
3+
- `while` and `until` now pass the final result to callback (#963)
4+
5+
# v1.5.0
6+
7+
- Added `transform`, analogous to [`_.transform`](http://lodash.com/docs#transform) (#892)
8+
- `map` now returns an object when an object is passed in, rather than array with non-numeric keys. `map` will begin always returning an array with numeric indexes in the next major release. (#873)
9+
- `auto` now accepts an optional `concurrency` argument to limit the number of running tasks (#637)
10+
- Added `queue#workersList()`, to retrieve the list of currently running tasks. (#891)
11+
- Various code simplifications (#896, #904)
12+
- Various doc fixes :scroll: (#890, #894, #903, #905, #912)
13+
14+
# v1.4.2
15+
16+
- Ensure coverage files don't get published on npm (#879)
17+
18+
# v1.4.1
19+
20+
- Add in overlooked `detectLimit` method (#866)
21+
- Removed unnecessary files from npm releases (#861)
22+
- Removed usage of a reserved word to prevent :boom: in older environments (#870)
23+
24+
# v1.4.0
25+
26+
- `asyncify` now supports promises (#840)
27+
- Added `Limit` versions of `filter` and `reject` (#836)
28+
- Add `Limit` versions of `detect`, `some` and `every` (#828, #829)
29+
- `some`, `every` and `detect` now short circuit early (#828, #829)
30+
- Improve detection of the global object (#804), enabling use in WebWorkers
31+
- `whilst` now called with arguments from iterator (#823)
32+
- `during` now gets called with arguments from iterator (#824)
33+
- Code simplifications and optimizations aplenty ([diff](https://github.com/caolan/async/compare/v1.3.0...v1.4.0))
34+
35+
36+
# v1.3.0
37+
38+
New Features:
39+
- Added `constant`
40+
- Added `asyncify`/`wrapSync` for making sync functions work with callbacks. (#671, #806)
41+
- Added `during` and `doDuring`, which are like `whilst` with an async truth test. (#800)
42+
- `retry` now accepts an `interval` parameter to specify a delay between retries. (#793)
43+
- `async` should work better in Web Workers due to better `root` detection (#804)
44+
- Callbacks are now optional in `whilst`, `doWhilst`, `until`, and `doUntil` (#642)
45+
- Various internal updates (#786, #801, #802, #803)
46+
- Various doc fixes (#790, #794)
47+
48+
Bug Fixes:
49+
- `cargo` now exposes the `payload` size, and `cargo.payload` can be changed on the fly after the `cargo` is created. (#740, #744, #783)
50+
51+
52+
# v1.2.1
53+
54+
Bug Fix:
55+
56+
- Small regression with synchronous iterator behavior in `eachSeries` with a 1-element array. Before 1.1.0, `eachSeries`'s callback was called on the same tick, which this patch restores. In 2.0.0, it will be called on the next tick. (#782)
57+
58+
59+
# v1.2.0
60+
61+
New Features:
62+
63+
- Added `timesLimit` (#743)
64+
- `concurrency` can be changed after initialization in `queue` by setting `q.concurrency`. The new concurrency will be reflected the next time a task is processed. (#747, #772)
65+
66+
Bug Fixes:
67+
68+
- Fixed a regression in `each` and family with empty arrays that have additional properties. (#775, #777)
69+
70+
71+
# v1.1.1
72+
73+
Bug Fix:
74+
75+
- Small regression with synchronous iterator behavior in `eachSeries` with a 1-element array. Before 1.1.0, `eachSeries`'s callback was called on the same tick, which this patch restores. In 2.0.0, it will be called on the next tick. (#782)
76+
77+
78+
# v1.1.0
79+
80+
New Features:
81+
82+
- `cargo` now supports all of the same methods and event callbacks as `queue`.
83+
- Added `ensureAsync` - A wrapper that ensures an async function calls its callback on a later tick. (#769)
84+
- Optimized `map`, `eachOf`, and `waterfall` families of functions
85+
- Passing a `null` or `undefined` array to `map`, `each`, `parallel` and families will be treated as an empty array (#667).
86+
- The callback is now optional for the composed results of `compose` and `seq`. (#618)
87+
- Reduced file size by 4kb, (minified version by 1kb)
88+
- Added code coverage through `nyc` and `coveralls` (#768)
89+
90+
Bug Fixes:
91+
92+
- `forever` will no longer stack overflow with a synchronous iterator (#622)
93+
- `eachLimit` and other limit functions will stop iterating once an error occurs (#754)
94+
- Always pass `null` in callbacks when there is no error (#439)
95+
- Ensure proper conditions when calling `drain()` after pushing an empty data set to a queue (#668)
96+
- `each` and family will properly handle an empty array (#578)
97+
- `eachSeries` and family will finish if the underlying array is modified during execution (#557)
98+
- `queue` will throw if a non-function is passed to `q.push()` (#593)
99+
- Doc fixes (#629, #766)
100+
101+
102+
# v1.0.0
103+
104+
No known breaking changes, we are simply complying with semver from here on out.
105+
106+
Changes:
107+
108+
- Start using a changelog!
109+
- Add `forEachOf` for iterating over Objects (or to iterate Arrays with indexes available) (#168 #704 #321)
110+
- Detect deadlocks in `auto` (#663)
111+
- Better support for require.js (#527)
112+
- Throw if queue created with concurrency `0` (#714)
113+
- Fix unneeded iteration in `queue.resume()` (#758)
114+
- Guard against timer mocking overriding `setImmediate` (#609 #611)
115+
- Miscellaneous doc fixes (#542 #596 #615 #628 #631 #690 #729)
116+
- Use single noop function internally (#546)
117+
- Optimize internal `_each`, `_map` and `_keys` functions.

build/LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2010-2014 Caolan McMahon
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

0 commit comments

Comments
 (0)