From 844c2c4b0602fde0e9084584a4219f89c8c95716 Mon Sep 17 00:00:00 2001 From: equiman Date: Fri, 16 Aug 2024 15:51:31 -0500 Subject: [PATCH] feat: add debug code with json stringify for react --- .github/workflows/publish.yml | 4 ++-- .nvmrc | 1 + CHANGELOG.md | 7 +++++++ README.md | 2 +- package.json | 14 +++++++++++--- 5 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb9d84b..26cb9d7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - run: npm ci - run: npm run test @@ -26,7 +26,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm i -g vsce - run: vsce publish -p ${{ secrets.VSCE_PAT }} diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..b427e2a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v20.16.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index eee0467..06fa6c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,11 +9,18 @@ Fixed for any bug fixes. Security to invite users to upgrade in case of vulnerabilities. --> +## 1.5.1 - 2024/08/16 + +### Fixed + +- React snippets documentation and typescript support + ## 1.5.0 - 2024/08/16 ### Added - snippet for debug values inside a react component with json stringify +- `nvm` default version support ## 1.4.2 - 2023/04/17 diff --git a/README.md b/README.md index d0cd061..f7beb81 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ Below is a list of all available snippets and the triggers of each one. The `░ | Trigger | Description | Result JSX/TSX | | ------: | ------------------------------- | ----------------------------------------------------------- | -| `csd→` | console code with destructuring | `
JSON.stringify({░name}, null, 2)
█` | +| `ccd→` | console code with destructuring | `
JSON.stringify({░name}, null, 2)
█` | ### Styles diff --git a/package.json b/package.json index 0ffb5fc..b1f1667 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "debug-snippets", "description": "VS Code Debug snippets for JS, TS and CSS", - "version": "1.5.0", + "version": "1.5.1", "displayName": "Debug Snippets", "publisher": "deinsoftware", "icon": "images/light-icon.png", @@ -67,10 +67,18 @@ "language": "tsx-attr", "path": "./snippets/code.json" }, + { + "language": "tsx-attr", + "path": "./snippets/react.json" + }, { "language": "typescriptreact", "path": "./snippets/code.json" }, + { + "language": "typescriptreact", + "path": "./snippets/react.json" + }, { "language": "vue", "path": "./snippets/code.json" @@ -91,8 +99,8 @@ "test:ui": "vitest --ui" }, "volta": { - "node": "18.14.2", - "npm": "9.5.0" + "node": "20.16.0", + "npm": "10.8.1" }, "devDependencies": { "vitest": "0.29.1"