Skip to content

Commit

Permalink
feat: add debug code with json stringify for react
Browse files Browse the repository at this point in the history
  • Loading branch information
equiman committed Aug 16, 2024
1 parent 1171f9c commit 844c2c4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.16.0
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | `<pre><code>JSON.stringify({░name}, null, 2)</code></pre>█` |
| `ccd` | console code with destructuring | `<pre><code>JSON.stringify({░name}, null, 2)</code></pre>█` |

### Styles

Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 844c2c4

Please sign in to comment.