8000 Feat/wasm17 by pyramation · Pull Request #105 · launchql/libpg-query-node · GitHub
[go: up one dir, main page]

Skip to content

Feat/wasm17 #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 72 commits into
base: 17-latest
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
c1f82f4
Remove native build system, use WASM-only builds
pyramation Jun 14, 2025
dde4f08
Complete WASM-only build system
pyramation Jun 14, 2025
5bbfbf7
Fix error handling to return actual libpg_query error messages
pyramation Jun 14, 2025
80bbb45
Fix test suite for WASM-only mode
pyramation Jun 14, 2025
a633d47
Fix CI workflow to build WASM before running tests
pyramation Jun 14, 2025
f0510d9
Add WASM build step to Mac workflow for consistency
pyramation Jun 14, 2025
bc5b682
Implement sync wrappers using hybrid WASM approach
pyramation Jun 14, 2025
f3a2bb9
Clean up workflows and scripts - remove all native build references
pyramation Jun 14, 2025
6da21ce
Update sync wrapper implementation - still investigating deasync dead…
pyramation Jun 14, 2025
fe6fb03
Fix sync wrapper implementation - all tests now passing
pyramation Jun 14, 2025
9e55c41
Remove native build artifacts from libpg_query directory
pyramation Jun 14, 2025
ea0d7cb
Add comprehensive build and test instructions to README
pyramation Jun 14, 2025
afea1d1
Fix script names in workflows - use wasm:build instead of build:wasm
pyramation Jun 14, 2025
6196bbe
Create modular CI workflow with dependencies and artifact sharing
pyramation Jun 14, 2025
d0f201e
Update CI workflow with platform-specific emojis
pyramation Jun 14, 2025
1a946ee
Modernize README and remove binary build infrastructure
pyramation Jun 14, 2025
66184b6
Restore yamlize dependency and complete README modernization
pyramation Jun 14, 2025
fea0948
Update lock files after restoring yamlize dependency
pyramation Jun 14, 2025
bb5ba41
Restore individual platform CI badges to README
pyramation Jun 14, 2025
10c8e73
Update platform badges with proper logos
pyramation Jun 14, 2025
1420a29
Convert platform badges to HTML format for minimal layout
pyramation Jun 14, 2025
4e75d31
Reorganize README structure - move Usage above Build Instructions
pyramation Jun 14, 2025
adc5f23
Bump version to 17.2.0 and update README for publication
pyramation Jun 14, 2025
859bfa4
Clean up README by removing redundant Example and CommonJS Usage sect…
pyramation Jun 14, 2025
e74735f
Add comprehensive deparse documentation to README Usage section
pyramation Jun 14, 2025
a4a0c07
Fix deparse documentation by removing incorrect @pgsql/types import
pyramation Jun 14, 2025
f0cf02e
Refactor WASM memory management to prevent leaks
pyramation Jun 15, 2025
40de497
Add C.md documentation for libpg_query functions and WASM wrapper imp…
pyramation Jun 15, 2025
93f3ca7
Implement WASM wrapper improvements to eliminate proto.js dependency
pyramation Jun 15, 2025
f057595
Fix deparse error messages to match test expectations
pyramation Jun 15, 2025
eec1ef5
Add reorganized test structure and new function implementations
pyramation Jun 15, 2025
7273fb6
Update package-lock.json
pyramation Jun 15, 2025
a156d8b
Fix C compilation errors and remove proto.js dependency
pyramation Jun 15, 2025
2323948
Restore working deparse implementation from commit 1a38c37
pyramation Jun 15, 2025
8b48b2d
Complete implementation of additional libpg_query functions
pyramation Jun 15, 2025
c113246
Fix all remaining test failures
pyramation Jun 15, 2025
5734667
Add verbose logging to Emscripten build process
pyramation Jun 15, 2025
5207fd9
Fix WASM wrapper systematic issues
pyramation Jun 15, 2025
df6a695
Fix WASM wrapper systematic issues
pyramation Jun 15, 2025
e8d28ab
Remove wasm_scan_query and wasm_split_statements functions
pyramation Jun 15, 2025
d419c81
Add input validation to remaining functions and fix safe_strdup
pyramation Jun 15, 2025
00ab9a3
Fix hardcoded buffer size additions with exact calculations
pyramation Jun 15, 2025
df19c03
Standardize error handling across WASM wrapper functions
pyramation Jun 15, 2025
09bf35a
Fix critical memory management bugs in WASM wrapper
pyramation Jun 15, 2025
800e12b
Remove unused scripts/ directory and protogen script reference
pyramation Jun 15, 2025
0dab0d8
Complete function documentation and remove broken scan/split exports
pyramation Jun 15, 2025
359b903
Remove C.md planning document
pyramation Jun 15, 2025
34fe999
Remove proto.js file and update dependencies
pyramation Jun 15, 2025
6128538
Add parseQueryDetailedSync exports and update README to use npm commands
pyramation Jun 15, 2025
5e91048
Remove docker folder and update build documentation
pyramation Jun 15, 2025
c8be1b7
Restore docker commands in package.json
pyramation Jun 15, 2025
0ab4080
Remove unused dependencies from package.json
pyramation Jun 15, 2025
a247d73
Remove test/index.js and replace lodash with pure JavaScript
pyramation Jun 15, 2025
5234138
Add isReady function to check WASM module initialization
pyramation Jun 15, 2025
6aa3262
Update CHANGELOG.md with comprehensive v17.2.1 improvements
pyramation Jun 15, 2025
3dcbb11
lock
pyramation Jun 16, 2025
3b99fcf
readme
pyramation Jun 16, 2025
9b615cd
loadModule() and remove isReady()
pyramation Jun 16, 2025
3a9f748
cleanup entry point
pyramation Jun 16, 2025
15e9f15
remove protobuf from parse
pyramation Jun 16, 2025
369a923
Fix deparse() and deparseSync() protobuf handling
pyramation Jun 16, 2025
2557f97
proto
pyramation Jun 16, 2025
8503bbe
yamlize
pyramation Jun 16, 2025
9444bb4
update protogen
pyramation Jun 16, 2025
621321b
fix: deparsing with proto.js
pyramation Jun 16, 2025
ffea660
detailed methods removed
pyramation Jun 16, 2025
a3ca6d9
cleanup
pyramation Jun 16, 2025
cfde5a4
cleanup
pyramation Jun 16, 2025
9712324
notes
pyramation Jun 16, 2025
0aeedd2
cleanup build, use tsc
pyramation Jun 17, 2025
26f00ce
npm ignores
pyramation Jun 17, 2025
08049fe
new API
pyramation Jun 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 0 additions & 131 deletions .github/workflows/build-dry-run-no-win.yml

This file was deleted.

59 changes: 0 additions & 59 deletions .github/workflows/build-dry-run.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/build-supabase-artifacts.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/build-wasm-no-docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Wasm 🛠
'on':
workflow_dispatch: null
jobs:
build-wasm:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository 📥
uses: actions/checkout@v4
- name: Setup Node.js 🌐
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
- name: Install and Build 🚀
run: |
yarn
- name: Install Emscripten ✍🏻
run: |
sudo apt-get update
sudo apt-get install cmake python3 python3-pip
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.59
./emsdk activate 3.1.59
source ./emsdk_env.sh
- name: Build with Emscripten 🏗
run: |
source ./emsdk/emsdk_env.sh
emmake make
emmake make build
- name: Archive production artifacts 🏛
uses: actions/upload-artifact@v4
with:
name: wasm-artifacts
path: wasm
27 changes: 7 additions & 20 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,15 @@ jobs:
node-version: '20.x'
cache: 'yarn'

- name: Install and Build 🚀
run: |
yarn
- name: Install Dependencies 🧶
run: yarn install

- name: Install Emscripten ✍🏻
run: |
sudo apt-get update
sudo apt-get install cmake python3 python3-pip
git clone --branch 3.1.59 --depth 1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.59
./emsdk activate 3.1.59
source ./emsdk_env.sh

- name: Build with Emscripten 🏗
run: |
source ./emsdk/emsdk_env.sh
emmake make
emmake make build
- name: Build WASM 🏗
run: npm run wasm:build

- name: Archive production artifacts 🏛
uses: actions/upload-artifact@v4
with:
name: compiled-files
path: wasm
name: wasm-artifacts
path: wasm/
retention-days: 7
Loading
0