jssm 5.90.1 → 5.91.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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.90.1",
3
+ "version": "5.91.0",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },
7
7
  "exports": {
8
- "require": "./dist/jssm.es5.cjs.js",
8
+ "require": "./dist/jssm.es5.cjs",
9
9
  "import": "./dist/es6/jssm.js",
10
- "default": "./dist/jssm.es5.cjs.js",
10
+ "default": "./dist/jssm.es5.cjs",
11
11
  "browser": "dist/jssm.es5.iife.js"
12
12
  },
13
13
  "autoupdate": {
@@ -17,52 +17,53 @@
17
17
  {
18
18
  "basePath": "/dist",
19
19
  "files": [
20
- "jssm.es5.cjs.js"
20
+ "jssm.es5.cjs"
21
21
  ]
22
22
  }
23
23
  ]
24
24
  },
25
+ "type": "module",
25
26
  "description": "A Javascript finite state machine (FSM) with a terse DSL and a simple API. Most FSMs are one-liners. Fast, easy, powerful, well tested, typed with TypeScript, and visualizations. MIT License.",
26
- "main": "dist/jssm.es5.cjs.js",
27
+ "main": "dist/jssm.es5.cjs",
27
28
  "module": "dist/es6/jssm.js",
28
- "browser": "dist/jssm.es5.iife.js",
29
+ "browser": "dist/jssm.es5.iife.cjs",
29
30
  "types": "./jssm.d.ts",
30
31
  "scripts": {
31
- "jest-unicode-action": "jest unicode-actions.uspec.ts -c jest-unicode.config.js --color --verbose",
32
- "jest-unicode-string": "jest unicode-strings.uspec.ts -c jest-unicode.config.js --color --verbose",
33
- "jest-unicode-atom": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
34
- "jest-unicode-string-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
35
- "jest-unicode-atom-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.js --color --verbose",
32
+ "jest-unicode-action": "jest unicode-actions.uspec.ts -c jest-unicode.config.cjs --color --verbose",
33
+ "jest-unicode-string": "jest unicode-strings.uspec.ts -c jest-unicode.config.cjs --color --verbose",
34
+ "jest-unicode-atom": "jest unicode-atoms.uspec.ts -c jest-unicode.config.cjs --color --verbose",
35
+ "jest-unicode-string-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.cjs --color --verbose",
36
+ "jest-unicode-atom-label": "jest unicode-atoms.uspec.ts -c jest-unicode.config.cjs --color --verbose",
36
37
  "jest-unicode-full-slow": "npm run jest-unicode-atom && npm run jest-unicode-string && npm run jest-unicode-atom-label && npm run jest-unicode-string-label && jest-unicode-action",
37
- "jest-stoch": "jest -c jest-stoch.config.js --color --verbose",
38
- "jest-dragon": "jest -c jest-dragon.config.js --color --verbose",
39
- "jest-spec": "jest -c jest-spec.config.js --color --verbose",
38
+ "jest-stoch": "jest -c jest-stoch.config.cjs --color --verbose",
39
+ "jest-dragon": "jest -c jest-dragon.config.cjs --color --verbose",
40
+ "jest-spec": "jest -c jest-spec.config.cjs --color --verbose",
40
41
  "jest": "npm run jest-stoch && npm run jest-spec",
41
42
  "test": "npm run make && npm run jest",
42
43
  "clean": "rm -rf dist && rm -rf docs && cd coverage && rm -rf cloc && cd .. && rm -f src/ts/fsl_parser.ts && rm -f src/ts/version.ts && rm -f *.d.ts && mkdir dist && mkdir docs && cd coverage && mkdir cloc && cd ..",
43
- "peg": "rm -f src/ts/fsl_parser.js && pegjs src/ts/fsl_parser.peg && node src/buildjs/fixparser.js",
44
+ "peg": "rm -f src/ts/fsl_parser.js && pegjs src/ts/fsl_parser.peg && node src/buildjs/fixparser.cjs",
44
45
  "make_cjs": "rollup -c",
45
46
  "make_iife": "rollup -c rollup.config.iife.js",
46
47
  "make_deno": "rollup -c rollup.config.deno.js && cp dist/es6/*.d.ts dist/deno",
47
48
  "typescript": "tsc --build tsconfig.json && cp dist/es6/*.d.ts .",
48
- "makever": "node src/buildjs/makever.js",
49
+ "makever": "node src/buildjs/makever.cjs",
49
50
  "make": "npm run clean && npm run makever && npm run peg && npm run typescript && npm run make_iife && npm run make_deno && npm run make_cjs && npm run minify && npm run min_iife && npm run min_cjs && npm run min_deno && rm ./dist/es6/*.nonmin.js",
50
51
  "eslint": "eslint --color src/ts/jssm.ts src/ts/jssm_types.ts src/ts/tests/*.ts",
51
52
  "audit": "text_audit -r -t major MAJOR wasteful WASTEFUL any mixed fixme FIXME checkme CHECKME testme TESTME stochable STOCHABLE todo TODO comeback COMEBACK whargarbl WHARGARBL -g ./src/ts/**/*.{js,ts}",
52
53
  "vet": "npm run eslint && npm run audit",
53
- "benny": "node ./src/buildjs/benchmark.js",
54
+ "benny": "node ./src/buildjs/benchmark.cjs",
54
55
  "build": "npm run vet && npm run test && npm run site && npm run changelog && npm run docs && npm run cloc && npm run readme",
55
56
  "clean_bench": "npm run test && npm run benny",
56
57
  "qbuild": "npm run test",
57
58
  "ci_build": "npm run vet && npm run test",
58
59
  "minify": "mv dist/es6/fsl_parser.js dist/es6/fsl_parser.nonmin.js && terser dist/es6/fsl_parser.nonmin.js > dist/es6/fsl_parser.js",
59
- "min_iife": "mv dist/jssm.es5.iife.js dist/jssm.es5.iife.nonmin.js && terser dist/jssm.es5.iife.nonmin.js > dist/jssm.es5.iife.js",
60
- "min_cjs": "mv dist/jssm.es5.cjs.js dist/jssm.es5.cjs.nonmin.js && terser dist/jssm.es5.cjs.nonmin.js > dist/jssm.es5.cjs.js",
60
+ "min_iife": "mv dist/jssm.es5.iife.js dist/jssm.es5.iife.nonmin.cjs && terser dist/jssm.es5.iife.nonmin.cjs > dist/jssm.es5.iife.cjs",
61
+ "min_cjs": "mv dist/jssm.es5.cjs.js dist/jssm.es5.nonmin.cjs && terser dist/jssm.es5.nonmin.cjs > dist/jssm.es5.cjs",
61
62
  "min_deno": "terser dist/deno/jssm.deno-esm.nonmin.js > dist/deno/jssm.js",
62
63
  "site": "cp src/site/* docs/ && cp -r src/assets docs/assets/",
63
- "docs": "typedoc src/ts/jssm.ts src/ts/jssm_types.ts src/ts/jssm_constants.ts src/ts/jssm_error.ts src/ts/jssm_util.ts src/ts/version.ts --options typedoc-options.js",
64
- "cloc": "cloc --quiet ./src/** --exclude-list-file=./.clocignore --3 --json --out=./coverage/cloc/report_wt.json && cloc --quiet ./src/** --exclude-list-file=./.clocignore --exclude-dir=tests --3 --json --out=./coverage/cloc/report_nt.json && node ./src/buildjs/cloc_report.js",
65
- "readme": "rm -f ./README.md && node ./src/buildjs/make_readme.js && cp README.md dist/deno",
64
+ "docs": "typedoc src/ts/jssm.ts src/ts/jssm_types.ts src/ts/jssm_constants.ts src/ts/jssm_error.ts src/ts/jssm_util.ts src/ts/version.ts --options typedoc-options.cjs",
65
+ "cloc": "cloc --quiet ./src/** --exclude-list-file=./.clocignore --3 --json --out=./coverage/cloc/report_wt.json && cloc --quiet ./src/** --exclude-list-file=./.clocignore --exclude-dir=tests --3 --json --out=./coverage/cloc/report_nt.json && node ./src/buildjs/cloc_report.cjs",
66
+ "readme": "rm -f ./README.md && node ./src/buildjs/make_readme.cjs && cp README.md dist/deno",
66
67
  "changelog": "rm -f CHANGELOG.md && rm -f ./src/doc_md/CHANGELOG.md && better_git_changelog -b && cp CHANGELOG.* ./src/doc_md/"
67
68
  },
68
69
  "repository": {
@@ -112,11 +113,11 @@
112
113
  "@rollup/plugin-commonjs": "^22.0.0",
113
114
  "@rollup/plugin-node-resolve": "^13.3.0",
114
115
  "@rollup/plugin-replace": "^4.0.0",
116
+ "@types/chalk": "^2.2.0",
115
117
  "@types/jest": "^27.0.2",
116
118
  "@typescript-eslint/eslint-plugin": "^5.30.4",
117
119
  "@typescript-eslint/parser": "^5.30.4",
118
120
  "benny": "^3.7.1",
119
- "chalk": "^4.1.2",
120
121
  "cloc": "^2.10.0",
121
122
  "eslint": "^7.32.0",
122
123
  "eslint-plugin-fp": "^2.3.0",
@@ -129,6 +130,7 @@
129
130
  "jest": "^27.3.1",
130
131
  "jest-json-reporter2": "^1.1.0",
131
132
  "pegjs": "^0.10.0",
133
+ "picocolors": "^1.0.0",
132
134
  "rollup": "^2.72.1",
133
135
  "semver": "^7.5.4",
134
136
  "terser": "^5.14.2",
File without changes
File without changes
File without changes