Skip to content

Commit

Permalink
Release 0.15.0 (#280)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Jakubowicz <[email protected]>
  • Loading branch information
AndrewJakubowicz and AndrewJakubowicz authored Mar 7, 2022
1 parent efc6658 commit 63f8549
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
<!-- ### Fixed -->
<!-- ### Removed -->

## Unreleased
<!-- ## Unreleased -->

## [0.15.0] - 2022-03-07

### Added

- Added `noCompletions` property documentation to README.

### Fixed

Expand Down
35 changes: 19 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ All-in-one project, editor, file switcher, and preview with a horizontal side-by
| `pragmas` | `"on" \| "off" \| "off-visible"` | `"on"` | How to handle `playground-hide` and `playground-fold` comments ([details](#hiding--folding)). |
| `modified` | `boolean` | `false` | Whether the user has modified, added, or removed any project files. Resets whenever a new project is loaded. |
| `htmlFile` | `string` | `"index.html"` | The HTML file used in the preview. |
| `noCompletions` | `boolean` | `false` | If interactive code completions should be shown. This setting only applies to TypeScript files. |

### Slots

Expand Down Expand Up @@ -746,14 +747,15 @@ project element.

### Properties

| Name | Type | Default | Description |
| ------------- | --------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `project` | `string \| PlaygroundProject` | `undefined` | The project that this editor is associated with. Either the `<playground-project>` node itself, or its `id` in the host scope. |
| `filename` | `string` | `undefined` | The name of the project file that is currently being displayed. Set when changing tabs. Does not reflect to attribute. |
| `type` | `"js" \| "ts" \| "html" \| "css"` | `undefined` | File type. |
| `lineNumbers` | `boolean` | `false` | Render a gutter with line numbers in the editor |
| `pragmas` | `"on" \| "off" \| "off-visible"` | `"on"` | How to handle `playground-hide` and `playground-fold` comments ([details](#hiding--folding)). |
| `readonly` | `boolean` | `false` | Do not allow edits |
| Name | Type | Default | Description |
| --------------- | --------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------ |
| `project` | `string \| PlaygroundProject` | `undefined` | The project that this editor is associated with. Either the `<playground-project>` node itself, or its `id` in the host scope. |
| `filename` | `string` | `undefined` | The name of the project file that is currently being displayed. Set when changing tabs. Does not reflect to attribute. |
| `type` | `"js" \| "ts" \| "html" \| "css"` | `undefined` | File type. |
| `lineNumbers` | `boolean` | `false` | Render a gutter with line numbers in the editor |
| `pragmas` | `"on" \| "off" \| "off-visible"` | `"on"` | How to handle `playground-hide` and `playground-fold` comments ([details](#hiding--folding)). |
| `readonly` | `boolean` | `false` | Do not allow edits |
| `noCompletions` | `boolean` | `false` | If interactive code completions should be shown. This setting only applies to TypeScript files. |

---

Expand All @@ -763,14 +765,15 @@ A pure text editor based on CodeMirror with syntax highlighting for HTML, CSS, J

### Properties

| Name | Type | Default | Description |
| ------------- | --------------------------------- | ----------- | -------------------------------------------------------------------------------------------------- |
| `value` | `string` | `""` | Code as string |
| `type` | `"js" \| "ts" \| "html" \| "css"` | `undefined` | Language of the file to syntax highlight |
| `readonly` | `boolean` | `false` | Do not allow edits |
| `lineNumbers` | `boolean` | `false` | Render a gutter with line numbers in the editor |
| `pragmas` | `"on" \| "off" \| "off-visible"` | `"on"` | How to handle `playground-hide` and `playground-fold` comments ([details](#hiding--folding)). |
| `documentKey` | `object` | `undefined` | Editor history for undo/redo is isolated per `documentKey`. Default behavior is a single instance. |
| Name | Type | Default | Description |
| --------------- | --------------------------------- | ----------- | -------------------------------------------------------------------------------------------------- |
| `value` | `string` | `""` | Code as string |
| `type` | `"js" \| "ts" \| "html" \| "css"` | `undefined` | Language of the file to syntax highlight |
| `readonly` | `boolean` | `false` | Do not allow edits |
| `lineNumbers` | `boolean` | `false` | Render a gutter with line numbers in the editor |
| `pragmas` | `"on" \| "off" \| "off-visible"` | `"on"` | How to handle `playground-hide` and `playground-fold` comments ([details](#hiding--folding)). |
| `documentKey` | `object` | `undefined` | Editor history for undo/redo is isolated per `documentKey`. Default behavior is a single instance. |
| `noCompletions` | `boolean` | `false` | If interactive code completions should be shown. This setting only applies to TypeScript files. |

### Events

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
@@ -1,6 +1,6 @@
{
"name": "playground-elements",
"version": "0.15.0-pre.5",
"version": "0.15.0",
"description": "Serverless coding environments for the web",
"homepage": "https://github.com/google/playground-elements#readme",
"repository": "github:google/playground-elements",
Expand Down
2 changes: 1 addition & 1 deletion src/shared/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

// This file is automatically generated by scripts/update-version-module.js
// before publishing.
export const npmVersion = '0.15.0-pre.5';
export const npmVersion = '0.15.0';
export const serviceWorkerHash = 'f56081d9';

0 comments on commit 63f8549

Please sign in to comment.