Skip to content

Conversation

@coolreader18
Copy link
Collaborator

Description of Changes

Very WIP , and will be for a while.

API and ABI breaking changes

Expected complexity level and risk

Testing

@coolreader18 coolreader18 changed the title Noa/v8 V8 module host Jun 6, 2025
@citizenll
Copy link

This is awesome, especially for full-stack development! Leveraging JavaScript’s vast npm ecosystem makes this a really solid implementation. Looking forward to the official release! 🥳

@citizenll
Copy link

Because I am really looking forward to the TypeScript bindings, I created a usability-enhancement plugin in my spare time to prepare for the future TypeScript version of spacetimedb. Experimental testing is already completed. If the TypeScript module bindings are further improved, I can continue to update this plugin. Repository link: https://github.com/citizenll/rolldown-plugin-spacetimedb

before

import { registerReducer, registerType, type } from 'spacetimedb';

const Foo = registerType(
    'Foo',
    type.product({
        bar: type.f32,
        baz: type.string,
        count: type.i64
    })
);

registerReducer('beepboop', [type.array(type.f32), type.bool, Foo], (x, y, z) => {
    // z.bar;
});

after

import { useReducer, f32, bool, str, i64 } from 'spacetimedb/composable';

type Foo = {
    bar: f32,
    baz: str,
    count: i64,
}

useReducer('beepboop', (x: f32[], y: bool, z: Foo) => {
    // z.bar
});

@Centril Centril force-pushed the noa/bump-rust-1.87 branch from cf83468 to e5f0adc Compare July 8, 2025 09:21
@Centril Centril force-pushed the noa/v8 branch 3 times, most recently from baebea3 to 23d99ce Compare July 8, 2025 11:03
@Centril Centril force-pushed the noa/bump-rust-1.87 branch 4 times, most recently from c455c9f to 0dc5011 Compare July 14, 2025 17:56
@Centril Centril force-pushed the noa/bump-rust-1.87 branch from 13673bd to 04dc539 Compare July 15, 2025 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants