Skip to content

Commit 4956b91

Browse files
committed
Merge branch '3209-bug-fix-stripping-3rd-party-library-imports' of github.com:Jaseci-Labs/jaseci into 3209-bug-fix-stripping-3rd-party-library-imports
2 parents c6b2e6c + 7c115f4 commit 4956b91

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release jac-client to PYPI
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
release-client:
7+
name: Release
8+
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
working-directory: jac-client
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.12'
20+
- name: Install Poetry
21+
run: |
22+
pip install poetry
23+
- name: Build and publish package
24+
run: |
25+
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
26+
poetry build
27+
poetry publish
28+
# - run: pip install githubrelease
29+
# - run: python scripts/gh_release.py
30+
# env:
31+
# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

.github/workflows/test-jaseci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
DATABASE_HOST: mongodb://localhost/?retryWrites=true&w=majority
5959
REDIS_HOST: redis://localhost
6060
TASK_CONSUMER_CRON_SECOND: "*"
61+
- name: Run Jac-Client tests
62+
run: |
63+
pip install -e jac-client
64+
pytest -x jac-client
6165
- name: Run littleX tests
6266
run: |
6367
pip install numpy

docs/docs/communityhub/release_notes/jac-client.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22

33
This document provides a summary of new features, improvements, and bug fixes in each version of **Jac-Client**. For details on changes that might require updates to your existing code, please refer to the [Breaking Changes](../breaking_changes.md) page.
44

5-
## jaclang 0.9.0 / jac-cloud 0.2.11 / byllm 0.4.6 / jac-client 0.1.0 (Unreleased)
5+
## jaclang 0.9.0 / jac-client 0.1.0 (Unreleased)
66

77
- **Client Bundler Plugin Support**: Extended the existing `pluggy`-based plugin architecture to support custom client bundling implementations. Two static methods were added to `JacMachineInterface` to enable client bundler plugins:
88
- `get_client_bundle_builder()`: Returns the client bundle builder instance, allowing plugins to provide custom bundler implementations
99
- `build_client_bundle()`: Builds client bundles for modules, can be overridden by plugins to use custom bundling strategies
1010

1111
- **ViteBundlerPlugin (jac-client)**: Official Vite-based bundler plugin providing production-ready JavaScript bundling with HMR, tree shaking, code splitting, TypeScript support, and asset optimization. Implements the `build_client_bundle()` hook to replace default bundling with Vite's optimized build system. Install `jac-client` library from the source and use it for automatic Vite-powered client bundle generation.
1212

13+
- **Import System Fix**: Fixed relative imports in client bundles, added support for third-party npm modules, and implemented validation for pure JavaScript file imports.
14+
15+
- **PYPI Package Release**: First stable release (v0.1.0) now available on PyPI. Install via `pip install jac-client` to get started with Vite-powered client bundling for your Jac projects.
16+
1317
## jaclang 0.8.10 / jac-cloud 0.2.10 / byllm 0.4.5 (Latest Release)
1418

1519
## jaclang 0.8.9 / jac-cloud 0.2.9 / byllm 0.4.4

0 commit comments

Comments
 (0)