Skip to content

Commit

Permalink
Updated version
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Jun 5, 2019
1 parent 0242c3e commit b72ca72
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 132 deletions.
64 changes: 36 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@

---

## [1.0.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v1.0.0) - *(2019-03-11)*
## [1.0.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v1.0.1) - _(2019-06-06)_

- `Function`
- :beetle: `isFunction` bug fixed
- :star2: Improved Typescript usage
- :star2: Improved linting
- :eyeglasses: Included Node.js `v11` and `v12` for `travis-ci` tests

## [1.0.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v1.0.0) - _(2019-03-11)_

- `Object`
- `prototype`
- :zap: `flatten` Added

## [v0.21.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.21.0) - *(2018-12-01)*
## [v0.21.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.21.0) - _(2018-12-01)_

- `Array`
- `prototype`
Expand All @@ -29,13 +37,13 @@
- `prototype`
- :zap: `dig` Added

## [v0.20.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.20.0) - *(2018-09-30)*
## [v0.20.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.20.0) - _(2018-09-30)_

- `Array`
- `prototype`
- :zap: `unwind` Added

## [v0.19.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.19.0) - *(2018-08-22)*
## [v0.19.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.19.0) - _(2018-08-22)_

- `Array`
- `prototype`
Expand All @@ -45,7 +53,7 @@
- :boom: Renamed `dist` path to `es5`
- :boom: Set `es6` as default

## [v0.18.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.18.1) - *(2018-08-18)*
## [v0.18.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.18.1) - _(2018-08-18)_

- `Array`
- `prototype`
Expand All @@ -54,7 +62,7 @@
- `prototype`
- :beetle: Deep `cloning` empty array bug fix

## [v0.18.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.18.0) - *(2018-08-18)*
## [v0.18.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.18.0) - _(2018-08-18)_

- `Object`
- `prototype`
Expand All @@ -64,7 +72,7 @@
- :boom: `singularize` Removed (use `pluralize(1)` instead)
- :star2: Removed `pluralize` dependency (no more dependency :sunglasses:)

## [v0.17.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.17.0) - *(2018-08-17)*
## [v0.17.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.17.0) - _(2018-08-17)_

- `Array`
- `prototype`
Expand All @@ -80,7 +88,7 @@
- :zap: `reduce` Added
- :star2: Some general enhancements

## [v0.16.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.16.0) - *(2018-08-15)*
## [v0.16.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.16.0) - _(2018-08-15)_

- `Array`
- `prototype`
Expand All @@ -93,15 +101,15 @@
- `prototype`
- :beetle: `$clone` Fixed deep cloning bug

## [v0.14.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.14.1) - *(2018-08-11)*
## [v0.14.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.14.1) - _(2018-08-11)_

- `String`
- `prototype`
- :beetle: `camelCase` Fixed regex bug
- :beetle: `kebabCase` Fixed regex bug
- :beetle: `snakeCase` Fixed regex bug

## [v0.14.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.14.0) - *(2018-08-10)*
## [v0.14.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.14.0) - _(2018-08-10)_

- `Date`
- :zap: `today` Added
Expand All @@ -125,7 +133,7 @@
- :zap: `forEach` Added
- :mortar_board: Improved documents

## [v0.13.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.13.0) - *(2018-08-01)*
## [v0.13.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.13.0) - _(2018-08-01)_

- `String`
- `prototype`
Expand All @@ -141,21 +149,21 @@
- `Number`
- :beetle: `isNumber` Fixed considering numeral strings as number

## [v0.12.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.12.1) - *(2018-07-31)*
## [v0.12.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.12.1) - _(2018-07-31)_

- `Array`
- `prototype`
- :beetle: `nest` Fixed finding children of children bug

## [v0.12.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.12.0) - *(2018-07-26)*
## [v0.12.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.12.0) - _(2018-07-26)_

- `Object`
- `prototype`
- :zap: `$assign` Added
- :zap: `$defaults` Added
- :zap: `$keys` Added

## [v0.11.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.11.0) - *(2018-07-16)*
## [v0.11.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.11.0) - _(2018-07-16)_

- `Array`
- `prototype`
Expand All @@ -174,7 +182,7 @@
- :zap: `equals` Added
- :zap: `parseInt` Added

## [v0.10.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.10.0) - *(2018-06-01)*
## [v0.10.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.10.0) - _(2018-06-01)_

- `Array`
- :boom: `isInstance` Removed
Expand All @@ -196,7 +204,7 @@
- :boom: `isInstance` Renamed to `isString`
- :star2: Better object value path handling

## [v0.9.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.9.0) - *(2018-05-29)*
## [v0.9.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.9.0) - _(2018-05-29)_

- `Array`
- `prototype`
Expand All @@ -212,7 +220,7 @@
- :zap: `pad` Added
- :zap: `repeat` Added

## [v0.8.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.8.0) - *(2018-05-25)*
## [v0.8.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.8.0) - _(2018-05-25)_

- `Array`
- `prototype`
Expand All @@ -225,15 +233,15 @@
- :zap: `$get` Added
- :zap: `$omit` Added

## [v0.7.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.7.0) - *(2018-05-20)*
## [v0.7.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.7.0) - _(2018-05-20)_

- `Object`
- `prototype`
- :zap: `$camelCaseKeys` Added
- :zap: `$kebabCaseKeys` Added
- :zap: `$snakeCaseKeys` Added

## [v0.6.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.6.0) - *(2018-05-11)*
## [v0.6.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.6.0) - _(2018-05-11)_

- `Array`
- `prototype`
Expand All @@ -252,7 +260,7 @@
- :zap: `whereNotNull` Added
- :zap: `whereNull` Added

## [v0.5.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.5.0) - *(2018-04-13)*
## [v0.5.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.5.0) - _(2018-04-13)_

- `Array`
- `prototype`
Expand All @@ -274,7 +282,7 @@
- :star2: Some general enhancements
- :beetle: Typescript usage

## [v0.4.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.4.0) - *(2018-01-28)*
## [v0.4.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.4.0) - _(2018-01-28)_

- `String`
- `prototype`
Expand All @@ -284,7 +292,7 @@
- :zap: `humanize` Added
- :star2: More customizable usage

## [v0.3.2](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.2) - *(2018-01-25)*
## [v0.3.2](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.2) - _(2018-01-25)_

- `Array`
- `prototype`
Expand All @@ -295,12 +303,12 @@
- `prototype`
- :zap: `contains` Added

## [v0.3.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.1) - *(2018-01-24)*
## [v0.3.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.1) - _(2018-01-24)_

- :star2: `es6` Usage is now available along side `es5` (`dist`)
- :beetle: Typescript usage

## [v0.3.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.0) - *(2018-01-24)*
## [v0.3.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.3.0) - _(2018-01-24)_

- `Array`
- :zap: `isInstance` Added
Expand Down Expand Up @@ -334,7 +342,7 @@
- :zap: `isEven` Added
- :zap: `isPrime` Added

## [v0.2.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.2.0) - *(2018-01-18)*
## [v0.2.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.2.0) - _(2018-01-18)_

- `Array`
- `prototype`
Expand All @@ -357,14 +365,14 @@
- :beetle: `decapitalize` Fixed returning the capitalized string
- :eyeglasses: Added tests

## [v0.1.2](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.2) - *(2018-01-15)*
## [v0.1.2](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.2) - _(2018-01-15)_

- :mortar_board: Fix project name in README.md

## [v0.1.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.1) - *(2018-01-15)*
## [v0.1.1](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.1) - _(2018-01-15)_

- :mortar_board: Update README.md usage

## [v0.1.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.0) - *(2018-01-15)*
## [v0.1.0](https://github.com/ardalanamini/prototyped.js/releases/tag/v0.1.0) - _(2018-01-15)_

- :tada: First release
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,34 @@ import all prototypes

```javascript
// es6 (default)
require('prototyped.js');
import 'prototyped.js';
import "prototyped.js";

// es5
require('prototyped.js/es5');
import 'prototyped.js/es5';
// or es5
require("prototyped.js/es5");

console.log('hello world!'.words()); // ['hello', 'world']
console.log("hello world!".words()); // ['hello', 'world']
```

or simply import the prototypes you want

```javascript
require('prototyped.js/es6/string');
require("prototyped.js/es6/string");
// or
require('prototyped.js/es5/string/words');
require("prototyped.js/es5/string/words");

console.log('hello world!'.words()); // ['hello', 'world']
console.log("hello world!".words()); // ['hello', 'world']
```

even better, just import the method you want

```javascript
const words = require('prototyped.js/es6/string/words/method');
const words = require("prototyped.js/es6/string/words/method");

console.log(words('hello world!')); // ['hello', 'world']
console.log(words("hello world!")); // ['hello', 'world']

const methods = require('prototyped.js/es5/methods');
const methods = require("prototyped.js/es5/methods");

console.log(methods.string.words('hello world!')); // ['hello', 'world']
console.log(methods.string.words("hello world!")); // ['hello', 'world']
```

**All documents are available at [here](https://prototyped.js.org)**
Expand All @@ -86,7 +84,7 @@ We use [SemVer](http://semver.org) for versioning. For the versions available, s

## Authors

- **Ardalan Amini** - *Owner/Developer* - [@ardalanamini](https://github.com/ardalanamini)
- **Ardalan Amini** - _Core Maintainer_ - [@ardalanamini](https://github.com/ardalanamini)

See also the list of [contributors](https://github.com/ardalanamini/prototyped.js/contributors) who participated in this project.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prototyped.js",
"version": "1.0.0",
"version": "1.0.1",
"description": "Common typescript ready prototypes available in both es5 and es6",
"author": {
"name": "Ardalan Amini",
Expand Down
2 changes: 1 addition & 1 deletion src/function/isFunction/method.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// tslint:disable-next-line:ban-types
const method = (arg: any): arg is Function => arg instanceof Function;
const method = (arg: any): arg is Function => typeof arg === "function";

export = method;
4 changes: 4 additions & 0 deletions src/function/isFunction/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ describe("Function.isFunction", () => {
test("Function.isFunction((() => {})) returns true", () => {
expect(Function.isFunction(() => {})).toBe(true);
});

test("Function.isFunction(jest.fn()) returns true", () => {
expect(Function.isFunction(jest.fn())).toBe(true);
});
});
Loading

0 comments on commit b72ca72

Please sign in to comment.