@putout/engine-parser 9.5.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,11 +3,7 @@
3
3
  const process = require('process');
4
4
  const once = require('once');
5
5
 
6
- // stricter validation to prevent even more invalid ASTs: not only
7
- // from a tree shape point of view but also ensuring that nodes in
8
- // the correct position carry valid information. For example, starting
9
- // from Babel 8 t.identifier("123") will be disallowed, because 123 is
10
- // not a valid identifier.
6
+ // stricter validation to prevent even more invalid ASTs: not only// from a tree shape point of view but also ensuring that nodes in// the correct position carry valid information. For example, starting// from Babel 8 t.identifier("123") will be disallowed, because 123 is// not a valid identifier.
11
7
  process.env.BABEL_TYPES_8_BREAKING = true;
12
8
 
13
9
  const plugins = require('./plugins');
@@ -17,9 +13,7 @@ const clean = (a) => a.filter(Boolean);
17
13
  const initBabel = once(() => require('@putout/babel'));
18
14
  const {assign} = Object;
19
15
 
20
- // There is a difference in options naming for babel and recast
21
- // recast -> sourceFileName
22
- // babel, putout: sourceFilename
16
+ // There is a difference in options naming for babel and recast// recast -> sourceFileName// babel, putout: sourceFilename
23
17
  module.exports.parse = function babelParse(source, {sourceFilename, isTS, isJSX = true, isFlow = getFlow(source)}) {
24
18
  const {parse} = initBabel();
25
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/engine-parser",
3
- "version": "9.5.0",
3
+ "version": "10.0.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout parser",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@putout/babel": "^1.0.4",
37
- "@putout/printer": "^5.0.0",
37
+ "@putout/printer": "^6.17.0",
38
38
  "@putout/recast": "^1.12.1",
39
39
  "estree-to-babel": "^8.0.0",
40
40
  "nano-memoize": "^3.0.11",
@@ -52,13 +52,13 @@
52
52
  "c8": "^8.0.0",
53
53
  "eslint": "^8.0.1",
54
54
  "eslint-plugin-n": "^16.0.0",
55
- "eslint-plugin-putout": "^20.0.0",
55
+ "eslint-plugin-putout": "^21.0.0",
56
56
  "espree": "^9.0.0",
57
57
  "esprima": "^4.0.1",
58
- "hermes-parser": "^0.16.0",
58
+ "hermes-parser": "^0.18.0",
59
59
  "just-camel-case": "^4.0.2",
60
60
  "lerna": "^6.0.1",
61
- "madrun": "^9.0.0",
61
+ "madrun": "^10.0.0",
62
62
  "mock-require": "^3.0.3",
63
63
  "montag": "^1.0.0",
64
64
  "nodemon": "^3.0.1",
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "license": "MIT",
70
70
  "engines": {
71
- "node": ">=16"
71
+ "node": ">=18"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"