prettier-plugin-latex
Advanced tools
Comparing version 1.2.3 to 1.2.4
{ | ||
"name": "prettier-plugin-latex", | ||
"description": "A Prettier plugin to reformat LaTeX source", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": { | ||
@@ -15,8 +15,8 @@ "name": "Jason Siefken", | ||
"files": [ | ||
"dist/prettier-plugin-latex/**" | ||
"dist/**" | ||
], | ||
"main": "dist/prettier-plugin-latex/src/index.js", | ||
"main": "dist/index.js", | ||
"exports": { | ||
".": "./dist/prettier-plugin-latex/src/index.js", | ||
"./standalone": "./dist/prettier-plugin-latex/src/standalone.js" | ||
".": "./dist/index.js", | ||
"./standalone": "./dist/standalone.js" | ||
}, | ||
@@ -30,5 +30,6 @@ "scripts": { | ||
"dependencies": { | ||
"jest-esm-transformer": "^1.0.0", | ||
"prettier": "^2.6.2", | ||
"rehype-stringify": "^9.0.3" | ||
"@unified-latex/unified-latex-prettier": "^1.0.5", | ||
"@unified-latex/unified-latex-util-parse": "^1.0.5", | ||
"@unified-latex/unified-latex-util-print-raw": "^1.0.5", | ||
"prettier": "^2.6.2" | ||
}, | ||
@@ -42,6 +43,7 @@ "devDependencies": { | ||
"babel-loader": "8.2.4", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
"esbuild-jest": "^0.5.0", | ||
"esbuild-runner": "^2.2.1", | ||
"eslint": "^8.13.0", | ||
"jest": "27.5.1", | ||
"jest-esm-transformer": "^1.0.0", | ||
"mkdirp": "1.0.4", | ||
@@ -51,2 +53,3 @@ "pegjs": "0.10.0", | ||
"prettier-plugin-pegjs": "^0.5.0", | ||
"rehype-stringify": "^9.0.3", | ||
"ts-jest": "^27.1.4", | ||
@@ -63,3 +66,3 @@ "ts-loader": "^9.2.8", | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!unified|bail|is-plain-obj|trough|vfile|unist.*)" | ||
"node_modules/(?!unified|bail|is-plain-obj|trough|vfile|unist.*|@unified-latex)" | ||
], | ||
@@ -66,0 +69,0 @@ "transform": { |
@@ -127,4 +127,9 @@ # prettier-plugin-latex | ||
**Note:** Prettier assumes that plugins are CommonJS modules with default exports. However, | ||
Webpack does _not_ translate `export default ...` syntax into a CommonJS default export. For | ||
this reason, the actual entry point to the plugin is `src/commonjs-export.cjs` which uses the | ||
CommonJS format to re-export the plugin as a default CommonJS export. | ||
### Code structure | ||
`prettier-plugin-latex` uses the [latex-ast-parser](https://github.com/siefkenj/latex-parser) library to parse the latex file and convert it to a prettier AST. This library is just a thin layer over `latex-ast-parser` | ||
`prettier-plugin-latex` uses the [unified-latex](https://github.com/siefkenj/latex-parser) library to parse the latex file and convert it to a prettier AST. This library is just a thin layer over `latex-ast-parser` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135
4963745
4
24
6
47344
1
+ Added@unified-latex/unified-latex-builder@1.8.0(transitive)
+ Added@unified-latex/unified-latex-ctan@1.8.1(transitive)
+ Added@unified-latex/unified-latex-prettier@1.8.1(transitive)
+ Added@unified-latex/unified-latex-types@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-align@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-argspec@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-arguments@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-catcode@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-comments@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-environments@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-match@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-parse@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-pegjs@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-pgfkeys@1.8.1(transitive)
+ Added@unified-latex/unified-latex-util-print-raw@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-render-info@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-replace@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-scan@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-split@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-trim@1.8.0(transitive)
+ Added@unified-latex/unified-latex-util-visit@1.8.0(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedprettier@3.4.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedtrie-prefix-tree@1.5.1(transitive)
- Removedjest-esm-transformer@^1.0.0
- Removedrehype-stringify@^9.0.3
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/compat-data@7.26.3(transitive)
- Removed@babel/core@7.26.0(transitive)
- Removed@babel/generator@7.26.3(transitive)
- Removed@babel/helper-compilation-targets@7.25.9(transitive)
- Removed@babel/helper-module-imports@7.25.9(transitive)
- Removed@babel/helper-module-transforms@7.26.0(transitive)
- Removed@babel/helper-plugin-utils@7.25.9(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/helper-validator-option@7.25.9(transitive)
- Removed@babel/helpers@7.26.0(transitive)
- Removed@babel/parser@7.26.3(transitive)
- Removed@babel/plugin-transform-modules-commonjs@7.26.3(transitive)
- Removed@babel/template@7.25.9(transitive)
- Removed@babel/traverse@7.26.4(transitive)
- Removed@babel/types@7.26.3(transitive)
- Removed@jridgewell/gen-mapping@0.3.8(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@types/hast@2.3.10(transitive)
- Removed@types/parse5@6.0.3(transitive)
- Removedbrowserslist@4.24.4(transitive)
- Removedcaniuse-lite@1.0.30001690(transitive)
- Removedccount@2.0.1(transitive)
- Removedcharacter-entities-html4@2.1.0(transitive)
- Removedcharacter-entities-legacy@3.0.0(transitive)
- Removedcomma-separated-tokens@2.0.3(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removedelectron-to-chromium@1.5.79(transitive)
- Removedescalade@3.2.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhast-util-from-parse5@7.1.2(transitive)
- Removedhast-util-parse-selector@3.1.1(transitive)
- Removedhast-util-raw@7.2.3(transitive)
- Removedhast-util-to-html@8.0.4(transitive)
- Removedhast-util-to-parse5@7.1.0(transitive)
- Removedhast-util-whitespace@2.0.1(transitive)
- Removedhastscript@7.2.0(transitive)
- Removedhtml-void-elements@2.0.1(transitive)
- Removedjest-esm-transformer@1.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@3.1.0(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedms@2.1.3(transitive)
- Removednode-releases@2.0.19(transitive)
- Removedparse5@6.0.1(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedproperty-information@6.5.0(transitive)
- Removedrehype-stringify@9.0.4(transitive)
- Removedsemver@6.3.1(transitive)
- Removedspace-separated-tokens@2.0.2(transitive)
- Removedstringify-entities@4.0.4(transitive)
- Removedunist-util-is@5.2.1(transitive)
- Removedunist-util-position@4.0.4(transitive)
- Removedunist-util-visit@4.1.2(transitive)
- Removedunist-util-visit-parents@5.1.3(transitive)
- Removedupdate-browserslist-db@1.1.2(transitive)
- Removedvfile-location@4.1.0(transitive)
- Removedweb-namespaces@2.0.1(transitive)
- Removedyallist@3.1.1(transitive)
- Removedzwitch@2.0.4(transitive)