Releases: google/playground-elements
v0.18.1
v0.18.0
[0.18.0] - 2023-05-25
Changed
- BREAKING Update bundled version of TypeScript from
4.8.4
to5.0.4
. See TypeScript 5 breaking changes.
v0.17.1
[0.17.1] - 2023-04-25
Added
- Fetch all
@types
packages listed in the project'spackage.json
file and
include them for TypeScript compilation. This allows type-checking packages
that do not ship their own types but do have a DefinitelyTyped package
available. Note: This does not automatically download the@types
package for
a package. It must be manually listed inpackage.json
.
v0.17.0
[0.17.0] - 2022-11-11
Changed
- Replaced
vscode-languageserver
dependency with smaller
vscode-languageserver-protocol
. - TypeScript version upgraded from
4.4.4
to4.8.4
. PlaygroundConnectedElement
project
is now permitted to beundefined
according to TypeScript.- Upgrade
codemirror
from5.63.0
to5.65.9
. - BREAKING Switched TypeScript
moduleResolution
fromesnext
tonodenext
. - BREAKING Bumped TypeScript
target
fromes2017
toes2021
. - BREAKING The local
package.json
is now passed to TypeScript for
compilation, and the default value of thetype
field is modified to
module
.
v0.16.3
Added syntax highlighting for jsx and tsx modules.
v0.16.2
Added
- Added support for compiling
jsx
andtsx
modules.
v0.15.3
Fixed
-
Fixed the hiding of comments that surround a fold/hide code block from
creating invisible readonly regions. -
Refactored fold/hide marker logic so it doesn't add document history when
clearing the prior fold/hide markers. -
Fix typo and incorrectly documented event name in README.
changed
event
should instead bechange
.
v0.15.2
Added
-
Make hidden code blocks readonly to prevent accidental erasure.
-
Added
Ctrl+/
orCmd+/
hotkey for toggling line comments. -
Added keyboard shortcut documentation to the playground-code-editor README.
v0.15.1
v0.15.0
Added
-
Added interactive code completions for TypeScript files
(#243).Completions can be disabled by setting the
no-completions
attribute on
<playground-ide>
,<playground-file-editor>
, or<playground-code-editor
>
components. -
Added
Ctrl-Space
hotkey for triggering interactive code completions. -
Added
documentKey
property to<playground-code-editor>
which is
used to keep track of individual CodeMirror document instances internally.
Default behavior without setting adocumentKey
is unchanged.Use
documentKey
for fine control over the CodeMirror document instance. For
example, to model changing a file.
Fixed
-
Normalize content-type response header to lowercase when matching filetypes.
-
Fixed undo history applying across files
(#154).Previously all files shared the same document instance resulting in files
sharing undo/redo history. Now each file has its own isolated internal
document instance. -
Fixed only a single closing script tag unescaping in html files using
playground-ide
(#251).