Skip to content

- fixed description in readme #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,85 @@
# Change Log
All notable changes to the "JavaScript and TypeScript Snippets" extension will be documented in this file.

## [0.22.1] - 2024-04-23

### Fixed

- Fixed description in README.md.

## [0.22.0] - 2024-03-31

### Added

- Added `using` and `await using`.
- Added `Symbol.dispose` and `Symbol.asyncDispose`.
- Added `${clipboard}` and `${selection}` for keyboard shortcut usage.

### Changed

- Eliminated duplicated prefixes with value selection.

### Removed

- Removed primitive types for functions, getters, setters, methods and types.
- Removed `typeof value !== ...`.

## [0.21.0] - 2023-04-09

### Added

- Added `l13Snippets.javascript.useFunctionBlockPadding` to enable or disable line padding in function blocks.
- Added `l13Snippets.typescript.useFunctionBlockPadding` to enable or disable line padding in function blocks.
- Added more snippets for TypeScript types like `declare`, `readonly`, `{ [K in T]: ... }` and `extends`.

### Changed

- Changed type formatting in TypeScript snippets.

## [0.20.0] - 2021-05-02

### Added

- Added brace scope for cases `case '': { ... break; }`.
- Added type import `import type { ... } from '...'`.

## [0.19.0] - 2021-04-04

### Added

- Added to JSON `"key": false`, `"key": 0`, `"key": ""` and `"key": [ ... ]`.
- Added `super.`.

### Changed

- Changed `return ` to `return;`.
- Removed `;` from `new Promise( ... )`.

### Removed

- Removed `class NAME { ... }` and `class NAME extends PARENT { ... }`.

## [0.18.0] - 2020-08-02

### Added

- Added `Array.isArray()`.
- Added `Object.assign()`, `Object.create()`, `Object.entries()`, `Object.keys()` and `Object.values()`.
- Added `Symbol()`, `Symbol.for()` and `Symbol.keyFor()`.
- Added primitive types to `toJSON`.

### Changed

- Added tab stop for loops and conditions to one line snippets.

### Fixed

- Fixed async typed functions.

## [0.17.0] - 2020-07-05

### Added

- Added info for [Built-In Extensions](https://marketplace.visualstudio.com/items?itemName=L13RARY.l13-built-in-extensions) to disable built-in JavaScript and TypeScript snippets.
- Added `Promis.all()`, `Promis.resolve()` and `Promis.reject()`.
- Added `new NAME()`, `new Array()`, `new Date()`and `new RegExp()`.
Expand All @@ -69,19 +88,23 @@ All notable changes to the "JavaScript and TypeScript Snippets" extension will b
- Added `break;`

### Changed

- Changed display name from `L13 JS Snippets` to `JavaScript and TypeScript Snippets`.

### Fixed

- Fixed `export * from ...` snippets.

### Removed

- Removed keyword `static`.
- Removed patterns with `:never`, `:object`, `:any`, etc. in TypeScript.
- Removed patterns with `new Array()`, `new Date()`and `new RegExp()`, etc.

## [0.16.0] - 2020-06-07

### Added

- Added `for await ... of` loop.
- Added keyword `yield`.
- Added `return { ... };`.
Expand All @@ -99,23 +122,28 @@ All notable changes to the "JavaScript and TypeScript Snippets" extension will b
## [0.15.0] - 2019-10-20

### Added

- Added support for JSON and JSONC.
- Added support for JavaScript React and TypeScript React.

## [0.14.0] - 2019-09-22

### Added

- Added "else " snippet.
- Added "switch () { case: break; }" snippet.

### Fixed

- Fixed "_" snippet in README.
- Fixed enum snippet.

## [0.13.1] - 2019-08-25

### Fixed

- Fixed link in README

## [0.13.0] - 2019-08-25

- Initial release
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,7 @@ __The following prefixes are just examples to explain the rules.__ To see the co
| `t1` | <b>t</b>ype <i>NAME</i> = <i>TYPE</i>; |
| `t_` | <b>t</b>ype <i>NAME</i> = <b>{ ... };</b> |

### 2. Variable declarations, properties and methods are available with primitive types and accessors, too.

| Prefix | Snippet |
| -------:| ------- |
| `cb1` | <b>c</b>onst <i>NAME</i>:<b>b</b>oolean = false; |
| `pb1` | <b>p</b>ublic <i>NAME</i>:<b>b</b>oolean = false; |
| `pgn_` | <b>p</b>ublic <b>g</b>et <i>NAME</i> () :<b>n</b>umber <b>{ ... }</b> |
| `pso_` | <b>p</b>ublic <b>s</b>tatic <i>NAME</i> () :<b>o</b>bject <b>{ ... }</b> |

### 3. An underscore "\_" at the start defines a private member or a mapped type.
### 2. An underscore "\_" at the start defines a private member or a mapped type.

| Prefix | Snippet |
| -------:| ------- |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "l13-js-snippets",
"displayName": "JavaScript and TypeScript Snippets",
"description": "Keyword snippets and micro patterns for JavaScript and TypeScript",
"version": "0.22.0",
"version": "0.22.1",
"publisher": "L13RARY",
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://github.com/l13/vscode-js-snippets/blob/master/README.md",
Expand Down