514-labs / moose

The developer framework for your data & analytics stack
https://www.moosejs.com
MIT License
20 stars 4 forks source link

multiple versions SDK #1124

Closed phiSgr closed 3 weeks ago

phiSgr commented 3 weeks ago

With deno, we can write

import { UserActivity as UserActivityOld } from "sdk/0.0/UserActivity.ts";
import { UserActivity as UserActivityNew } from "sdk/0.1/UserActivity.ts";

if we have deno.json

{
  "imports": {
    "sdk/": "./.moose/test-flow-sdk/"
  }
}

In another node project, I've tried import {UserActivity as UserActivityOld } from 'test-flow-sdk/0.0/UserActivity' with

  "dependencies": {
    "test-flow-sdk": "file:../test-flow/.moose/test-flow-sdk"
  }

in package.json.

linear[bot] commented 3 weeks ago

514-796 Generate Different version of the SDK for different versions of the data models and flows

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
company-landing ✅ Ready (Inspect) Visit Preview Apr 26, 2024 11:29pm
framework-docs ✅ Ready (Inspect) Visit Preview Apr 26, 2024 11:29pm
framework-landing ✅ Ready (Inspect) Visit Preview Apr 26, 2024 11:29pm
moose-product-analytics ✅ Ready (Inspect) Visit Preview Apr 26, 2024 11:29pm