Releases: google/playground-elements
v0.16.3
Added syntax highlighting for jsx and tsx modules.
v0.16.2
Added
- Added support for compiling
jsxandtsxmodules.
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.
changedevent
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-completionsattribute on
<playground-ide>,<playground-file-editor>, or<playground-code-editor>
components. -
Added
Ctrl-Spacehotkey for triggering interactive code completions. -
Added
documentKeyproperty to<playground-code-editor>which is
used to keep track of individual CodeMirror document instances internally.
Default behavior without setting adocumentKeyis unchanged.Use
documentKeyfor 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).
v0.14.6
v0.14.5
Fixed
- Upgraded
es-module-lexerdependency to bring in fix for
guybedford/es-module-lexer#92.
v0.14.4
v0.14.3
Added
-
Added an overlay that will display over the preview when we detect that
service workers are not available. One reason this can happen is using
Playground in Firefox private browsing mode, which does not support service
workers (https://bugzilla.mozilla.org/show_bug.cgi?id=1320796). -
Added
cursorPosition,cursorIndex, andtokenUnderCursorgetters to
<playground-code-editor>.
Changed
- Upgraded dependencies, including CodeMirror.
Fixed
-
Fixed a bottleneck that prevented previews from loading until semantic
TypeScript errors were computed. This should significantly improve the latency
between updating a file and the new preview loading. -
Fixed bug where parent window history entries were added every time the
preview reloaded. -
Improvements to service worker version updates:
-
The service worker will require less frequent updates going forward.
Previously it needed updating for every playground-elements release. Now it
only needs updating if the bytes of the service worker have changed between
releases. -
The default service worker scope has changed from
<sandboxBaseUrl>/playground-projectto
<sandboxBaseUrl>/__playground_swfs_<serviceWorkerHash>. This should make service
worker updates more reliable because old and new versions of service workers
will no longer be in contention to control the same URLs. -
Misc other small service worker robustness improvements, and additional
logging to help debug future issues.
-