Permalink
Browse files

Adjust README.md and package.json in prep for Lo-Dash v.1.1.0.

  • Loading branch information...
1 parent 7650014 commit a74594dfb311c015ec82816dbb3315d21ce9dfca @jdalton jdalton committed Mar 10, 2013
Showing with 17 additions and 20 deletions.
  1. +9 −17 README.md
  2. +4 −0 package.json
  3. +2 −1 test/benchmark.air/src/index.html
  4. +1 −1 vendor/lodash/README.md
  5. +1 −1 vendor/platform.js/README.md
View
@@ -15,13 +15,16 @@ For a list of upcoming features, check out our [roadmap](https://github.com/best
## Support
-Benchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1-15, IE 6-9, Opera 9.25-12, Safari 3-6, Node.js 0.8.8, Narwhal 0.3.2, RingoJS 0.8, and Rhino 1.7RC5.
+Benchmark.js has been tested in at least Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5.
## Installation and usage
-In a browser or Adobe AIR:
+Benchmark.js’ only hard dependency is [Lo-Dash](http://lodash.com/).
+
+In a browser:
```html
+<script src="lodash.js"></script>
<script src="benchmark.js"></script>
```
@@ -70,23 +73,12 @@ In an AMD loader like [RequireJS](http://requirejs.org/):
```js
require({
'paths': {
- 'benchmark': 'path/to/benchmark'
- }
-},
-['benchmark'], function(Benchmark) {
- console.log(Benchmark.version);
-});
-
-// or with platform.js
-// https://github.com/bestiejs/platform.js
-require({
- 'paths': {
'benchmark': 'path/to/benchmark',
+ 'lodash': 'path/to/lodash',
'platform': 'path/to/platform'
}
},
-['benchmark', 'platform'], function(Benchmark, platform) {
- Benchmark.platform = platform;
+['benchmark'], function(Benchmark) {
console.log(Benchmark.platform.name);
});
```
@@ -108,7 +100,7 @@ suite.add('RegExp#test', function() {
console.log(String(event.target));
})
.on('complete', function() {
- console.log('Fastest is ' + this.filter('fastest').pluck('name'));
+ console.log('Fastest is ' + _.pluck(this.filter('fastest'), 'name'));
})
// run async
.run({ 'async': true });
@@ -121,7 +113,7 @@ suite.add('RegExp#test', function() {
## BestieJS
-Benchmark.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
+Benchmark.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.
## Authors
View
@@ -53,5 +53,9 @@
},
"scripts": {
"test": "node test/test"
+ },
+ "dependencies": {
+ "lodash": "~1.1.0",
+ "platform": "~1.0.0"
}
}
@@ -7,6 +7,7 @@
<script>
var console = air.Introspector.Console;
</script>
+ <script src="lodash.js"></script>
<script src="benchmark.js"></script>
</head>
<body>
@@ -26,7 +27,7 @@
console.log(event.target);
})
.on('complete', function() {
- console.log('Fastest is ' + this.filter('fastest').pluck('name'));
+ console.log('Fastest is ' + _.pluck(this.filter('fastest'), 'name'));
})
// don't run async to avoid JavaScript security errors
// http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7f0e.html
View
@@ -263,7 +263,7 @@ The full changelog is available [here](https://github.com/bestiejs/lodash/wiki/C
## BestieJS
-Lo-Dash is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
+Lo-Dash is part of the BestieJS *“Best in Class”* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.
## Author
@@ -8,7 +8,7 @@ Platform.js is for informational purposes only and **not** intended as a substit
## BestieJS
-Platform.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
+Platform.js is part of the BestieJS *"Best in Class"* module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, and plenty of documentation.
## Documentation

0 comments on commit a74594d

Please sign in to comment.