Skip to content

Commit a00c38a

Browse files
authored
Merge pull request #836 from live-codes/develop
release sdk-v0.11.1
2 parents ca3a386 + fbc2198 commit a00c38a

6 files changed

Lines changed: 22 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. See [standa
44

55
---
66

7+
## [sdk-v0.11.1](https://github.com/live-codes/livecodes/compare/v46...sdk-v0.11.1) (2025-05-24)
8+
9+
### Bug Fixes
10+
11+
- **SDK:** fix sdk build (sdkVersion) ([c383d26](https://github.com/live-codes/livecodes/commit/c383d26b8358a374de1ebe7073d2a38a27b7ede1))
12+
13+
---
14+
715
## [v46](https://github.com/live-codes/livecodes/compare/v45...v46) (2025-05-24)
816

917
### Highlights for this release

docs/src/utils.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
// eslint-disable-next-line import/no-unresolved
22
import siteConfig from '@generated/docusaurus.config';
33

4+
(globalThis as any).process = {
5+
...(globalThis as any).process,
6+
env: {
7+
...(globalThis as any).process?.env,
8+
SDK_VERSION: siteConfig.customFields.sdkVersion,
9+
},
10+
};
11+
412
let docsBaseUrl = siteConfig.customFields.docsBaseUrl as string | undefined;
513
if (docsBaseUrl && !docsBaseUrl.endsWith('/')) {
614
docsBaseUrl = docsBaseUrl + '/';

e2e/specs/custom-settings.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ body
337337
expect(await getResult().innerText('body script')).not.toContain('function add_css()');
338338
});
339339

340-
test('stencil', async ({ page, getTestUrl, editor }) => {
340+
test.skip('stencil', async ({ page, getTestUrl, editor }) => {
341341
test.skip(editor === 'codemirror');
342342

343343
await page.goto(getTestUrl({ template: 'stencil' }));

src/sdk/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ export async function createPlayground(
7171
const origin = playgroundUrl.origin;
7272
playgroundUrl.searchParams.set('embed', 'true');
7373
playgroundUrl.searchParams.set('loading', isHeadless ? 'eager' : loading);
74-
75-
const process = (globalThis as any).process; // avoid failing in docs & storybook
76-
playgroundUrl.searchParams.set('sdkVersion', process?.env?.SDK_VERSION || 'latest');
74+
playgroundUrl.searchParams.set('sdkVersion', process.env.SDK_VERSION || 'latest');
7775

7876
// for backward-compatibility
7977
if (typeof config === 'object' && Object.keys(config).length > 0) {

src/sdk/package.sdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "livecodes",
3-
"version": "0.11.0",
3+
"version": "0.11.1",
44
"description": "A Code Playground That Just Works!",
55
"author": "Hatem Hosny",
66
"license": "MIT",

storybook/src/create-story.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import type { ArgTypes, Story } from '@storybook/html';
22
import { flatten, unflatten } from 'flat';
33

4+
// prettier-ignore
5+
import './deps';
6+
// prettier-ignore
47
import { defaultConfig } from '../../src/livecodes/config/default-config';
58
import { languages } from '../../src/livecodes/languages';
69
import { starterTemplates } from '../../src/livecodes/templates/starter';
710
import type { LiveCodesArgs } from './LiveCodes';
8-
import './deps';
911

1012
const delimiter = '__';
1113

0 commit comments

Comments
 (0)