Skip to content

Commit 468d967

Browse files
authored
Dev/streamlit 1.44.1 (#1451)
* Update Streamlit to 1.44.1: Upgrade Yarn to 4.5.3, Delete vite-plugin-checker, Make the packages ESM * Fix resolveLogo() * Remove _install_pages_watcher from web.bootstrap() because it was removed in streamlit/streamlit#8744 * Enable Corepack in CI * Delete yarn.lock from the streamlit submodule so that it's recognized as a workspace by Yarn * Fix protofile path * Restore typescript at the project root for make clean to work * Add streamlit/frontend as a workspace * Update typescript * Update vite and vitest * Enhance type annotation * Fix stlite_lib/server/server.py * Delete network-timeout option from Yarn * Run build:proto before test in sharing-common * Fix auto completion test * Delete test_install_pages_watcher as its impl was deleted * Delete --ignore-scripts * Delete unnecessary shell: bash * Delete --ignore-scripts * [WIP] corepack * Add vitest to @stlite/desktop * Fix the worker to send ArrayBuffer instead of Uint8Array for WebSocket payload * Update the streamlit-frontend-lib make rule * Update Makefile * Fix dependencies * Use a dummy host name stlite.invalid for custom component URLs * Update parquet-wasm to 0.6.0 and fix its import * Delete playwright install from test-build-vscode-extension * Modify the package path * Update Yarn in browser/e2e-tests * Fix * Delete the pre-installed Yarn in Windows * Delete --frozen-lockfile because it's deprecated and its successor --immutable is enabled in CI automatically * Update the app and lib packages to refer to eslint-plugin-streamlit-custom via the workspace protocol * Delete the pre-installed Yarn in Windows * Fix the desktop package file name * Bundle desktop/bin as ESM * Fix vscode-stlite dependencies * Add --no-dependencies to the vsce package command as advised in microsoft/vscode-vsce#517 (comment) * Delete packages/vscode-stlite/.yarnrc * Upgrade @vscode/vsce * Rename esbuild.js -> esbuild.mjs * Fix the esbuild problem with CJS modules * Delete vscode-stlite * Update samples * Fix Makefile * Add typecheck * Fix types * Fix type defs * Update streamlit submodule * Fix widget.download_button_file.py * Update DEVELOPMENT.md * Switch to createRoot API * Add loglevel setup * Configure optimizeDeps to exclude parquet-wasm * Delete unnecessary package resolution specs * Fix desktop/bin-src * Delete sharing-editor/src/setupTests.ts * Update DEVELOPMENT.md * Fix * Fix
1 parent 773f241 commit 468d967

File tree

113 files changed

+32758
-24469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+32758
-24469
lines changed

.github/actions/init-all/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ runs:
2727
if: ${{ inputs.python-version-file }}
2828

2929
## Set up Node environment
30+
- name: Enable Corepack
31+
run: corepack enable
32+
shell: bash
3033
- uses: actions/setup-node@v4
3134
with:
3235
node-version-file: ${{ inputs.node-version-file }}

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ jobs:
5050
**/uv.lock
5151
5252
## Set up Node environment
53+
- name: Enable Corepack
54+
run: corepack enable
5355
- uses: actions/setup-node@v4
5456
with:
5557
node-version-file: .nvmrc
5658
cache: 'yarn'
57-
- run: yarn install --frozen-lockfile
59+
60+
- run: yarn install
5861

5962
# We require protoc >= 3.20, but Ubuntu 22.04 - the OS that these Github
6063
# Actions are running as of 2023.05.03 - doesn't have recent versions

.github/workflows/postbuild.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ jobs:
166166
- uses: actions/checkout@v4
167167
with:
168168
persist-credentials: false
169+
170+
- name: Enable Corepack
171+
run: corepack enable
169172
- uses: actions/setup-node@v4
170173
with:
171174
node-version-file: ${{ env.node-version-file }}
@@ -204,6 +207,9 @@ jobs:
204207
- uses: actions/checkout@v4
205208
with:
206209
persist-credentials: false
210+
211+
- name: Enable Corepack
212+
run: corepack enable
207213
- uses: actions/setup-node@v4
208214
with:
209215
node-version-file: ${{ env.node-version-file }}
@@ -228,49 +234,3 @@ jobs:
228234
files: packages/desktop/stlite-desktop-v*.tgz
229235
generate_release_notes: true
230236
tag_name: ${{ needs.get-build-info.outputs.tag }}
231-
232-
publish-vscode-extension:
233-
needs:
234-
- get-build-info
235-
- publish-browser # The VSC extension uses the same version of published @stlite/browser, so it must be released in order.
236-
if: ${{ startsWith(needs.get-build-info.outputs.tag, 'v') }}
237-
238-
permissions:
239-
contents: write # Necessary for creating releases: https://github.com/softprops/action-gh-release#permissions
240-
241-
runs-on: ubuntu-latest
242-
243-
strategy:
244-
fail-fast: false
245-
matrix:
246-
target: [marketplace, openvsx]
247-
248-
steps:
249-
- uses: actions/download-artifact@v4
250-
with:
251-
name: vscode-stlite
252-
run-id: ${{ github.event.workflow_run.id }}
253-
github-token: ${{ secrets.GITHUB_TOKEN }}
254-
- run: |
255-
files=( vscode-stlite*.vsix )
256-
echo "vsix_filename=${files[0]}" >> $GITHUB_ENV
257-
- if: matrix.target == 'marketplace'
258-
name: Publish to Visual Studio Marketplace
259-
uses: HaaLeo/publish-vscode-extension@v2
260-
with:
261-
extensionFile: "${{ env.vsix_filename }}"
262-
pat: ${{ secrets.VSCE_PAT }}
263-
registryUrl: https://marketplace.visualstudio.com
264-
- if: matrix.target == 'openvsx'
265-
name: Publish to Open VSX Registry
266-
uses: HaaLeo/publish-vscode-extension@v2
267-
with:
268-
extensionFile: "${{ env.vsix_filename }}"
269-
pat: ${{ secrets.OPEN_VSX_TOKEN }}
270-
- if: matrix.target == 'marketplace'
271-
name: Create a new release
272-
uses: softprops/action-gh-release@v2
273-
with:
274-
files: "${{ env.vsix_filename }}"
275-
generate_release_notes: true
276-
tag_name: ${{ needs.get-build-info.outputs.tag }}

0 commit comments

Comments
 (0)