Skip to content

Commit 32cf1b6

Browse files
committed
Merge branch 'core-v2' into v2: #234 lives again
2 parents cc17f48 + 8407450 commit 32cf1b6

32 files changed

+538
-449
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": [ "es2015-loose" ],
2+
"presets": [ "es2015-argon" ],
33
"sourceMaps": "inline"
44
}

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: node_js
22
node_js:
3-
- 0.10
4-
# - 0.12 # assume 0.12 works if 0.10 does.
53
- 4
64
- 6
75

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
101101
### Changed
102102
- Rearranged rule groups in README in preparation for more style guide rules
103103

104+
### Removed
105+
- support for Node 0.10, via `es6-*` ponyfills. Using native Map/Set/Symbol.
106+
104107
## [1.4.0] - 2016-03-25
105108
### Added
106109
- Resolver plugin interface v2: more explicit response format that more clearly covers the found-but-core-module case, where there is no path.

memo-parser/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict"
22

33
const crypto = require('crypto')
4-
, moduleRequire = require('../lib/core/module-require').default
5-
, hashObject = require('../lib/core/hash').hashObject
4+
, moduleRequire = require('eslint-module-utils/module-require').default
5+
, hashObject = require('eslint-module-utils/hash').hashObject
66

77
const cache = new Map()
88

@@ -22,7 +22,7 @@ exports.parse = function parse(content, options) {
2222

2323
const keyHash = crypto.createHash('sha256')
2424
keyHash.update(content)
25-
hashObject(keyHash, options)
25+
hashObject(options, keyHash)
2626

2727
const key = keyHash.digest('hex')
2828

package.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "eslint-plugin-import",
33
"version": "1.10.1",
44
"description": "Import with sanity.",
5+
"engines": { "node": ">=4" },
56
"main": "lib/index.js",
67
"directories": {
78
"test": "tests"
@@ -43,14 +44,14 @@
4344
"homepage": "https://github.com/benmosher/eslint-plugin-import",
4445
"devDependencies": {
4546
"babel-eslint": "next",
46-
"babel-preset-es2015": "^6.6.0",
47-
"babel-preset-es2015-loose": "^7.0.0",
47+
"babel-preset-es2015-argon": "*",
4848
"chai": "^3.4.0",
4949
"coveralls": "^2.11.4",
5050
"cross-env": "^1.0.7",
5151
"eslint": "3.x",
5252
"eslint-import-resolver-node": "file:./resolvers/node",
5353
"eslint-import-resolver-webpack": "file:./resolvers/webpack",
54+
"eslint-module-utils": "file:./utils",
5455
"glob": "^6.0.2",
5556
"gulp": "^3.9.0",
5657
"gulp-babel": "6.1.2",
@@ -68,16 +69,11 @@
6869
"builtin-modules": "^1.1.1",
6970
"contains-path": "^0.1.0",
7071
"doctrine": "1.2.x",
71-
"es6-map": "^0.1.3",
72-
"es6-set": "^0.1.4",
73-
"es6-symbol": "*",
7472
"eslint-import-resolver-node": "^0.2.0",
7573
"lodash.cond": "^4.3.0",
7674
"lodash.endswith": "^4.0.1",
7775
"lodash.find": "^4.3.0",
7876
"lodash.findindex": "^4.3.0",
79-
"object-assign": "^4.0.1",
80-
"pkg-dir": "^1.0.0",
8177
"pkg-up": "^1.0.0"
8278
}
8379
}

0 commit comments

Comments
 (0)