# Change Log - @typespec/playground

## 0.15.0

### Breaking Changes

- [#10468](https://github.com/microsoft/typespec/pull/10468) Remove the `newChangeDiff` emitter option. Diff highlighting of changed files and lines is now always enabled in the output viewer.

### Features

- [#10349](https://github.com/microsoft/typespec/pull/10349) Add compilation spinner, diff highlighting, and output preservation

### Bug Fixes

- [#10442](https://github.com/microsoft/typespec/pull/10442) Fix line-level diff highlighting not appearing in the playground output editor, and reduce typing freezes by coalescing recompilations triggered while a compile is already running.


## 0.14.0

### Features

- [#10024](https://github.com/microsoft/typespec/pull/10024) Add file tree view for output
- [#10018](https://github.com/microsoft/typespec/pull/10018) Make UI more mobile friendly. 
    - Add a new switch to toggle between TypeSpec and output panels
    - Command bar hides less important tools behind `...`
    - [API] Update custom toolbar to take a menu item instead of generic react node.
- [#10256](https://github.com/microsoft/typespec/pull/10256) Add search and category grouping to samples

### Bug Fixes

- [#10212](https://github.com/microsoft/typespec/pull/10212) Don't show file tree view in output when there is only a single file


## 0.13.0

### Features

- [#9819](https://github.com/microsoft/typespec/pull/9819) Add codefix support in the playground. Quick fixes are now surfaced as Monaco code actions when the cursor is on a diagnostic.
- [#9890](https://github.com/microsoft/typespec/pull/9890) Add support for oneOf option schemas.
- [#9843](https://github.com/microsoft/typespec/pull/9843) Redesigned emitter options dialog into a config panel allowing to edit the raw `tspconfig.yaml`

### Bump dependencies

- [#9838](https://github.com/microsoft/typespec/pull/9838) Upgrade dependencies

### Bug Fixes

- [#9760](https://github.com/microsoft/typespec/pull/9760) Optimization: Fetch all libraries in parallel


## 0.12.0

### Features

- [#9535](https://github.com/microsoft/typespec/pull/9535) Update sample dropdown to a drawer opening a sample gallery

### Bump dependencies

- [#9446](https://github.com/microsoft/typespec/pull/9446) Upgrade dependencies


## 0.11.4

### Bump dependencies

- [#9223](https://github.com/microsoft/typespec/pull/9223) Upgrade dependencies

### Bug Fixes

- [#9174](https://github.com/microsoft/typespec/pull/9174) [a11y] Fix problem pane not usable via keyboard


## 0.11.3

### Bump dependencies

- [#9046](https://github.com/microsoft/typespec/pull/9046) Upgrade dependencies


## 0.11.2

### Bump dependencies

- [#8823](https://github.com/microsoft/typespec/pull/8823) Upgrade dependencies

### Bug Fixes

- [#8714](https://github.com/microsoft/typespec/pull/8714) Fix regression in recent performance optimization of language server that crashed the playground when completing


## 0.11.1

### Bump dependencies

- [#8437](https://github.com/microsoft/typespec/pull/8437) Upgrade dependencies


## 0.11.0

### Features

- [#4383](https://github.com/microsoft/typespec/pull/4383) Add new import from remote typespec functionality

### Bump dependencies

- [#8317](https://github.com/microsoft/typespec/pull/8317) Upgrade dependencies


## 0.10.0

### Features

- [#8013](https://github.com/microsoft/typespec/pull/8013) Add button to bookmark types in the type graph into `window.vars`
- [#7944](https://github.com/microsoft/typespec/pull/7944) Exposed some debugging variables in the playground console, including the Program, a bound Typekit, and the compiler host.

### Bump dependencies

- [#7978](https://github.com/microsoft/typespec/pull/7978) Upgrade dependencies

### Bug Fixes

- [#7959](https://github.com/microsoft/typespec/pull/7959) Fix loading monaco web workers


## 0.9.0

### Features

- [#7836](https://github.com/microsoft/typespec/pull/7836) Overall of the playground state
    - Allow viewers to define their own state
    - Can listen to any state change
    - Standalone playground updates url on navigation(viewer change, viewer internal state change, etc.)

### Bump dependencies

- [#7674](https://github.com/microsoft/typespec/pull/7674) Upgrade dependencies

### Bug Fixes

- [#7833](https://github.com/microsoft/typespec/pull/7833) Fix editor hovers being cropped by the editor boundary


## 0.8.2

### Bump dependencies

- [#7323](https://github.com/microsoft/typespec/pull/7323) Upgrade dependencies

### Bug Fixes

- [#7319](https://github.com/microsoft/typespec/pull/7319) Reduce visual noise in diagnostics by targeting the specific node id rather than the entire node.


## 0.8.1

### Bump dependencies

- [#6595](https://github.com/microsoft/typespec/pull/6595) Upgrade dependencies

### Bug Fixes

- [#6753](https://github.com/microsoft/typespec/pull/6753) Guard against diagnostic reported without a target


## 0.8.0

### Breaking Changes

- [#5977](https://github.com/microsoft/typespec/pull/5977) Minimum node version is now 20

### Bump dependencies

- [#6266](https://github.com/microsoft/typespec/pull/6266) Update dependencies


## 0.7.2

No changes, version bump only.

## 0.7.1

### Bump dependencies

- [#5690](https://github.com/microsoft/typespec/pull/5690) Upgrade dependencies


## 0.7.0

### Features

- [#5372](https://github.com/microsoft/typespec/pull/5372) Add support for displaying array-based emitter options


## 0.6.1

No changes, version bump only.

## 0.6.0

### Bug Fixes

- [#4719](https://github.com/microsoft/typespec/pull/4719) Fix dark theme not applying

### Bump dependencies

- [#4679](https://github.com/microsoft/typespec/pull/4679) Upgrade dependencies - October 2024

### Features

- [#4587](https://github.com/microsoft/typespec/pull/4587) Expose state storage helper via its own exports


## 0.5.0

### Bug Fixes

- [#4606](https://github.com/microsoft/typespec/pull/4606) Do not treat path as relative internally

### Bump dependencies

- [#4424](https://github.com/microsoft/typespec/pull/4424) Bump dependencies

### Features

- [#4538](https://github.com/microsoft/typespec/pull/4538) Upgrade to latest monaco-editor


## 0.4.2

### Bug Fixes

- [#4276](https://github.com/microsoft/typespec/pull/4276) Accessibility, increase footer contrast
- [#4081](https://github.com/microsoft/typespec/pull/4081) Fix: Reloading the playground will not register the typespec language server


## 0.4.1

### Bump dependencies

- [#3948](https://github.com/microsoft/typespec/pull/3948) Update dependencies


## 0.4.0

### Bump dependencies

- [#3718](https://github.com/microsoft/typespec/pull/3718) Dependency updates July 2024

### Features

- [#3585](https://github.com/microsoft/typespec/pull/3585) Add error recovery for viewer that crash
- [#3750](https://github.com/microsoft/typespec/pull/3750) Add new property on the playground to add custom buttons on the toolbar
- [#3713](https://github.com/microsoft/typespec/pull/3713) Extract splitpane into separate package


## 0.3.0

### Bug Fixes

- [#3542](https://github.com/microsoft/typespec/pull/3542) Fix issue where hover tooltip would be cropped or not visible

### Bump dependencies

- [#3401](https://github.com/microsoft/typespec/pull/3401) Update dependencies - May 2024

### Features

- [#3465](https://github.com/microsoft/typespec/pull/3465) Provide ability to add custom program viewers
- [#3569](https://github.com/microsoft/typespec/pull/3569) Support loglevel in playground's logging


## 0.2.2

### Bug Fixes

- [#3170](https://github.com/microsoft/typespec/pull/3170) Add support for new intrinsic vs std lib split in the compiler.
- [#3151](https://github.com/microsoft/typespec/pull/3151) Fix completion of keywords

### Bump dependencies

- [#3169](https://github.com/microsoft/typespec/pull/3169) Update dependencies


## 0.2.1

### Bug Fixes

- [#3031](https://github.com/microsoft/typespec/pull/3031) Add `aria` attributes for accessibility

### Bump dependencies

- [#3027](https://github.com/microsoft/typespec/pull/3027) Update dependencies


## 0.2.0

### Bug Fixes

- [#2888](https://github.com/microsoft/typespec/pull/2888) Refactor of the mapping between Language Server and monaco API

### Bump dependencies

- [#2900](https://github.com/microsoft/typespec/pull/2900) Update dependencies

### Features

- [#2936](https://github.com/microsoft/typespec/pull/2936) Autocomplete installed libraries in `import` statements


## 0.1.0

### Patch Changes



## 0.1.0-alpha.5

Wed, 24 Jan 2024 05:46:53 GMT

### Updates

- Remove `githubIssueUrl` link and replace with a `onFileBug` callback.
- Handle new `$linter` exported variable
- Add `noopener noreferrer` to footer external links
- Fix: Wrong css exports `style.css` was provided instead of `styles.css`. Both are now available for backward compatibility but `styles.css` is the recommended name.

## 0.1.0-alpha.4

Wed, 06 Dec 2023 19:40:58 GMT

### Updates

- Add a format button to the playground command bar
- Add a notification to the standalone playground when the playground has been saved.
- Add ability to pass a custom footer and use `Footer` and `FooterItem` component to build your own
- `registerMonacoDefaultWorkers` renamed to `registerMonacoDefaultWorkersForVite` and must now be called if using vite.
- Move errors and warnings to a dedicated expandable banner at the bottom of the playground.
- Allow standalone playground to show a loading fallback

## 0.1.0-alpha.3

Wed, 08 Nov 2023 00:07:17 GMT

### Updates

- **BREAKING CHANGE** Dropped support for node 16, minimum node version is now 18
- Enable changing the theme
- Add resizable panes for the editor and output
- Ability to configure via `createBrowserHost` if library loading should use system `importmap` or the es-module-shim library with `importmap-shim`. This was added due to the lack of support for external source map in browsers.
- **BREAKING CHANGE** Styles must be imported seperately with `import \"@typespec/playground/styles.css\";`

## 0.1.0-alpha.2

Wed, 03 Oct 2023 18:00:18 GMT

### Updates

- Upgrade swagger-ui

## 0.1.0-alpha.1

Tue, 12 Sep 2023 21:47:11 GMT

### Updates

- Fix: Usage of the package in vite dev mode was broken. Some errors due to the loading of the manifest as well as monaco editor workers.
  **BREAKING CHANGE:** Changed `import { PlaygroundManifest } from "@typespec/playground/manifest";` to`import PlaygroundManifest from "@typespec/playground/manifest";`
