Skip to content

Commit

Permalink
Merge branch 'release/v0.2.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
rousan committed Jan 28, 2018
2 parents 6202a16 + c3f55a6 commit 8c73646
Show file tree
Hide file tree
Showing 14 changed files with 97 additions and 67 deletions.
Binary file added .DS_Store
Binary file not shown.
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

package-lock.json
12 changes: 0 additions & 12 deletions .idea/es6.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/jsLibraryMappings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Ariyan Khan
Copyright (c) 2017 Rousan Ali

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,29 @@

# ES6 Harmony

Provides an equivalent implementation of `ES6(Harmony)` in pure `ES5` code and creates an `ES6` environment for old browsers or JavaScript Engines.
Provides an equivalent implementation of `ES6(Harmony)` in pure `ES5` and creates an `ES6` environment for old browsers and JavaScript Engines.

> ES6 shims in ES5 code.
> ES6 shims in pure ES5.
## Install

### NPM

Install it from `npm` and require before any other modules:
Install it from `npm` and `require` it before any other modules:

```bash
$ npm install --save es6-harmony
```

```javascript
var ES6 = require("es6-harmony");
```

### CDN

If you prefer CDN, then just insert it into your HTML page on the top of other scripts:

`<script src="https://cdn.jsdelivr.net/npm/es6-harmony"></script>`
`<script src="https://cdn.jsdelivr.net/npm/es6-harmony/dist/es6-harmony.min.js"></script>`

## Examples

Expand Down Expand Up @@ -326,12 +330,12 @@ promise.then(function (value) {

## Not Yet Implemented

Some features are not yet implemented, but can be implemented safely. Click [here](https://github.com/ariyankhan/es6-harmony/blob/master/not-yet-implemented.md) to view those features.
Some features are not yet implemented, but can be implemented safely. Click [here](https://github.com/ariyankhan/es6-harmony/blob/master/not-yet-implemented.md) to see those features.

## Limitation

Some ES6 features can not be implemented in ES5 natively like `spread operator`, `for..of` loop, ES6 version of `instanceOf` operator etc.
So this module exports a object named `ES6` globally, that provides some approximate equivalent implementation of those features.
Some `ES6` features can not be implemented in `ES5` natively like `spread operator`, `for..of` loop, `ES6` version of `instanceOf` operator etc.
So this module exports an object named `ES6` globally, that provides some approximate equivalent implementation of those features.

## `ES6` Object

Expand All @@ -350,7 +354,6 @@ This object provides,
* `isWeakSet`
* `isPromise`


## Contributing

Your PRs and stars are always welcome.
Expand All @@ -364,8 +367,8 @@ Please, try to follow:
* Build the project.

```sh
$ git clone https://github.com/rousan/vector.svg.git
$ cd vector.svg
$ git clone https://github.com/rousan/es6-harmony.git
$ cd es6-harmony
$ git checkout develop
$ npm i
$ npm run build
Expand Down
2 changes: 1 addition & 1 deletion dist/es6-harmony.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/es6-harmony.min.js.map

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions es6-harmony.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
/*!
* ES6 Harmony v0.2.3
* ES6 Harmony v0.2.4
* This module provides an equivalent implementation of ES6(Harmony)
* in pure ES5 code and creates an ES6 environment for old browsers or
* JavaScript engines that natively does not support ES6. At least ES5 is required.
* This Library is standalone, it has no dependency.
* in pure ES5 and creates an ES6 environment for old browsers or
* JavaScript engines that natively does not support ES6.
*
* @license Copyright (c) 2017 Ariyan Khan, MIT License
* @license Copyright (c) 2017-2018 Rousan Ali, MIT License
*
* Codebase: https://github.com/ariyankhan/es6-harmony
* Date: Jun 15, 2017
* Codebase: https://github.com/rousan/es6-harmony
* Date: 28th Jan, 2018
*/

(function (global, factory) {
Expand Down
20 changes: 11 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"name": "es6-harmony",
"version": "0.2.3",
"description": "An equivalent implementation of ES6 in pure ES5 code for old JavaScript engines",
"version": "0.2.4",
"description": "An equivalent implementation of ES6 in pure ES5 for old JavaScript engines",
"main": "es6-harmony.js",
"directories": {
"test": "test"
},
"scripts": {
"build": "uglifyjs --source-map --compress --output dist/es6-harmony.min.js -- es6-harmony.js",
"test": "node ./test/test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ariyankhan/es6-harmony.git"
"url": "git+https://github.com/rousan/es6-harmony.git"
},
"keywords": [
"es",
Expand All @@ -32,10 +30,14 @@
"es6-weakset",
"es6-promise"
],
"author": "Ariyan Khan",
"author": "Rousan Ali <[email protected]> (https://rousan.io)",
"license": "MIT",
"bugs": {
"url": "https://github.com/ariyankhan/es6-harmony/issues"
"url": "https://github.com/rousan/es6-harmony/issues"
},
"homepage": "https://github.com/ariyankhan/es6-harmony#readme"
"homepage": "https://github.com/rousan/es6-harmony#readme",
"dependencies": {},
"devDependencies": {
"uglify-js": "^3.3.9"
}
}
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="../es6-harmony.js"></script>
<script src="../dist/es6-harmony.min.js"></script>
</head>
<body>

Expand Down

0 comments on commit 8c73646

Please sign in to comment.