Skip to content

Commit 844c2c4

Browse files
committed
feat: add debug code with json stringify for react
1 parent 1171f9c commit 844c2c4

File tree

5 files changed

+22
-6
lines changed

5 files changed

+22
-6
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
- run: npm ci
1919
- run: npm run test
2020

@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/checkout@v3
2727
- uses: actions/setup-node@v3
2828
with:
29-
node-version: 18
29+
node-version: 20
3030
registry-url: https://registry.npmjs.org/
3131
- run: npm i -g vsce
3232
- run: vsce publish -p ${{ secrets.VSCE_PAT }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20.16.0

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ Fixed for any bug fixes.
99
Security to invite users to upgrade in case of vulnerabilities.
1010
-->
1111

12+
## 1.5.1 - 2024/08/16
13+
14+
### Fixed
15+
16+
- React snippets documentation and typescript support
17+
1218
## 1.5.0 - 2024/08/16
1319

1420
### Added
1521

1622
- snippet for debug values inside a react component with json stringify
23+
- `nvm` default version support
1724

1825
## 1.4.2 - 2023/04/17
1926

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Below is a list of all available snippets and the triggers of each one. The `░
117117

118118
| Trigger | Description | Result JSX/TSX |
119119
| ------: | ------------------------------- | ----------------------------------------------------------- |
120-
| `csd` | console code with destructuring | `<pre><code>JSON.stringify({░name}, null, 2)</code></pre>█` |
120+
| `ccd` | console code with destructuring | `<pre><code>JSON.stringify({░name}, null, 2)</code></pre>█` |
121121

122122
### Styles
123123

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "debug-snippets",
33
"description": "VS Code Debug snippets for JS, TS and CSS",
4-
"version": "1.5.0",
4+
"version": "1.5.1",
55
"displayName": "Debug Snippets",
66
"publisher": "deinsoftware",
77
"icon": "images/light-icon.png",
@@ -67,10 +67,18 @@
6767
"language": "tsx-attr",
6868
"path": "./snippets/code.json"
6969
},
70+
{
71+
"language": "tsx-attr",
72+
"path": "./snippets/react.json"
73+
},
7074
{
7175
"language": "typescriptreact",
7276
"path": "./snippets/code.json"
7377
},
78+
{
79+
"language": "typescriptreact",
80+
"path": "./snippets/react.json"
81+
},
7482
{
7583
"language": "vue",
7684
"path": "./snippets/code.json"
@@ -91,8 +99,8 @@
9199
"test:ui": "vitest --ui"
92100
},
93101
"volta": {
94-
"node": "18.14.2",
95-
"npm": "9.5.0"
102+
"node": "20.16.0",
103+
"npm": "10.8.1"
96104
},
97105
"devDependencies": {
98106
"vitest": "0.29.1"

0 commit comments

Comments
 (0)