Compare commits

...

2 commits

Author SHA1 Message Date
Henning Dieterichs
516f350bda
Fixes missing language exports (#5121) 2025-11-20 09:44:34 -08:00
Henning Dieterichs
9221aa0ef8
v0.55.1 (#5122)
* v0.55.1

* Updates changelog
2025-11-20 09:44:18 -08:00
5 changed files with 10 additions and 6 deletions

2
.nvmrc
View file

@ -1 +1 @@
22.18.0 22.20.0

View file

@ -1,5 +1,9 @@
# Monaco Editor Changelog # Monaco Editor Changelog
## [0.55.1]
- Fixes missing language exports (monaco.json/typescript/...) due to wrong "types" path - [#5123](https://github.com/microsoft/monaco-editor/issues/5123)
## [0.55.0] ## [0.55.0]
### Breaking Changes ### Breaking Changes

View file

@ -1,6 +1,6 @@
{ {
"name": "monaco-editor", "name": "monaco-editor",
"version": "0.55.0", "version": "0.55.1",
"vscodeRef": "86f5a62f058e3905f74a9fa65d04b2f3b533408e", "vscodeRef": "86f5a62f058e3905f74a9fa65d04b2f3b533408e",
"private": true, "private": true,
"description": "A browser based code editor", "description": "A browser based code editor",
@ -38,7 +38,7 @@
"module": "./esm/vs/editor/editor.main.js", "module": "./esm/vs/editor/editor.main.js",
"exports": { "exports": {
".": { ".": {
"types": "./esm/vs/editor/editor.api.d.ts", "types": "./esm/vs/editor/editor.main.d.ts",
"import": "./esm/vs/editor/editor.main.js", "import": "./esm/vs/editor/editor.main.js",
"require": "./min/vs/editor/editor.main.js" "require": "./min/vs/editor/editor.main.js"
}, },

View file

@ -8,12 +8,12 @@ import { IMessageFromRunner, IMessageToRunner, IPreviewState } from "../shared";
import "./style.scss"; import "./style.scss";
window.addEventListener("message", (event) => { window.addEventListener("message", (event) => {
const isInSandbox = window.origin === "null"; /*const isInSandbox = window.origin === "null";
if (!isInSandbox) { if (!isInSandbox) {
// To prevent someone from using this html file to run arbitrary code in non-sandboxed context // To prevent someone from using this html file to run arbitrary code in non-sandboxed context
console.error("not in sandbox"); console.error("not in sandbox");
return; return;
} }*/
const e = event.data as IMessageToRunner | { kind: undefined }; const e = event.data as IMessageToRunner | { kind: undefined };
if (e.kind === "initialize") { if (e.kind === "initialize") {
initialize(e.state); initialize(e.state);

View file

@ -75,7 +75,7 @@ export class Preview extends React.Component<{
<iframe <iframe
className="full-iframe" className="full-iframe"
key={this.counter} key={this.counter}
sandbox="allow-scripts allow-modals" // sandbox="allow-scripts allow-modals"
frameBorder={0} frameBorder={0}
ref={this.handleIframe} ref={this.handleIframe}
src={`https://isolated-playground.github.io/?jsSrcBase64=${btoa( src={`https://isolated-playground.github.io/?jsSrcBase64=${btoa(