Socket
Socket
Sign inDemoInstall

assemblyscript-prettier

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemblyscript-prettier - npm Package Compare versions

Comparing version 2.0.2 to 3.0.0

88

CHANGELOG.md

@@ -1,90 +0,4 @@

## [2.0.2](https://github.com/HerrCai0907/assemblyscript-prettier/compare/2.0.1...2.0.2) (2023-03-09)
# 3.0.0 (2023-08-23)
## [2.0.1](https://github.com/HerrCai0907/assemblyscript-prettier/compare/v1.0.7...v2.0.1) (2023-03-07)
### Bug Fixes
* comment will cause decoretor dislocation ([#9](https://github.com/HerrCai0907/assemblyscript-prettier/issues/9)) ([a4961e6](https://github.com/HerrCai0907/assemblyscript-prettier/commit/a4961e654680914dd34056488c907afe55a4454b))
### Features
* refactor as prettier plugin ([#8](https://github.com/HerrCai0907/assemblyscript-prettier/issues/8)) ([2d34e9b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/2d34e9b373cabb8aec00aa7bd0c191614750bef5))
# [2.0.0](https://github.com/HerrCai0907/assemblyscript-prettier/compare/v1.0.7...v2.0.0) (2023-03-07)
### Features
* refactor as prettier plugin ([1d23473](https://github.com/HerrCai0907/assemblyscript-prettier/commit/1d23473d6ca02aae6f5b0d57fcf2759a5b3528df))
## [1.0.7](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.6...1.0.7) (2023-02-03)
### Bug Fixes
* add missing npmignore ([e584da4](https://github.com/HerrCai0907/assemblyscript-prettier/commit/e584da42952e267adcb917d8b9fda5cd3e57297d))
## [1.0.6](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.5...1.0.6) (2022-12-08)
### Bug Fixes
* match assemblyscript v22 enum identifiers to TitleCase ([1b06f6b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/1b06f6b6b4841b2bf1345168d5c29c5cb6aa8d0d))
## [1.0.5](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.3...1.0.5) (2022-10-25)
### Bug Fixes
* update to assemblyscript 22 ([6ceb378](https://github.com/HerrCai0907/assemblyscript-prettier/commit/6ceb378a3fb40516df06a31f7560d8c9a4471c0b))
## [1.0.4](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.3...1.0.4) (2022-08-10)
### Bug Fixes
* prettierignore path error ([5d945a5](https://github.com/HerrCai0907/assemblyscript-prettier/commit/5d945a591708216ba52ba7ac858779cd16e5f1d8))
* rename ignore file name to avoid collision ([72c9a3b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/72c9a3bef8e1bcd480c2582b2703ef142d3aea1f))
## [1.0.3](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.2...1.0.3) (2022-08-05)
### Bug Fixes
* move prettier and assemblyscript from dependencies to peerDependencies ([6aa4c83](https://github.com/HerrCai0907/assemblyscript-prettier/commit/6aa4c8312ccb34f8e538d1900ee5bb3abe47acbc))
## [1.0.2](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.1...1.0.2) (2022-08-03)
### Bug Fixes
* fix check return code ([bd110cb](https://github.com/HerrCai0907/assemblyscript-prettier/commit/bd110cb551a357b6878446f45c36048e6fad11fd))
## [1.0.1](https://github.com/HerrCai0907/assemblyscript-prettier/compare/1.0.0...1.0.1) (2022-08-03)
### Bug Fixes
* miss shenbang ([ba5ba4b](https://github.com/HerrCai0907/assemblyscript-prettier/commit/ba5ba4bcc59a56604a8f08d31172b99ca05a3cca))

12

package.json
{
"name": "assemblyscript-prettier",
"version": "2.0.2",
"version": "3.0.0",
"description": "prettier for assemblyscript",

@@ -12,3 +12,3 @@ "main": "src/plugin.js",

"test:create": "NODE_OPTIONS=--experimental-vm-modules jest --updateSnapshot",
"version": "conventional-changelog -i CHANGELOG.md -s -p angular && git add CHANGELOG.md"
"version": "conventional-changelog -o CHANGELOG.md -p angular -r 0"
},

@@ -25,2 +25,8 @@ "author": "congcongcai0907@163.com",

},
"files": [
"package.json",
"README.md",
"CHANGELOG.md",
"src/*"
],
"repository": {

@@ -34,3 +40,3 @@ "type": "git",

"peerDependencies": {
"prettier": ">=3.0.0-alpha.4"
"prettier": "^3.0.0"
},

@@ -37,0 +43,0 @@ "dependencies": {

@@ -5,4 +5,2 @@ # assemblyscript-prettier

This is version 2 and require `prettier@3`(still in alpha stage)
If you want to use `prettier@2`, please see [version 1](https://www.npmjs.com/package/assemblyscript-prettier/v/1.0.7)

@@ -14,3 +12,3 @@

npm i -D assemblyscript-prettier
npm i -D prettier@3.0.0-alpha.6
npm i -D prettier@3.0.0
```

@@ -17,0 +15,0 @@

@@ -7,5 +7,7 @@ import pluginTypescript from "prettier/plugins/typescript";

function initPrinter(jsPlugin) {
async function initPrinter(jsPlugin) {
let estree = jsPlugin.printers.estree;
estree = typeof estree == "function" ? await estree() : estree;
Object.assign(as_estree, {
...jsPlugin.printers.estree,
...estree,
printComment(commentPath, options) {

@@ -27,4 +29,4 @@ let comment = commentPath.getValue().value;

function parse(text, options) {
initPrinter(options.plugins.find((plugin) => plugin.printers && plugin.printers.estree));
async function parse(text, options) {
await initPrinter(options.plugins.find((plugin) => plugin.printers && plugin.printers.estree));
let ast = pluginTypescript.parsers.typescript.parse(text, options);

@@ -31,0 +33,0 @@ return ast;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc