d2-docs icon indicating copy to clipboard operation
d2-docs copied to clipboard

document d2js

Open alixander opened this issue 9 months ago • 1 comments
trafficstars

alixander avatar Feb 26 '25 00:02 alixander

Commenting to follow updates.....

MichaelCropper avatar Feb 26 '25 00:02 MichaelCropper

Something isn't quite aligned here re. CI/CD for D2JS and the recent @nightly Build specifically.

I've encountered non-@nightly versions getting @nightly releases, which is incorrect from a Consumer perspective.

i.e.

import { D2 } from 'https://esm.sh/@terrastruct/d2';

VS

import { D2 } from 'https://esm.sh/@terrastruct/d2@nightly';

Producing the same result, which I wouldn't expect.

Perhaps I'm missing something related to the Release Version / Tagged Version (Current 0.6.9), given than D2JS is only a PART of the Release, I assume.

I can't quite second guess the setup.

Hopefully the As-Is Documentation can help explain this nuance, and help the community provide thoughts on a To-Be SDLC re. the D2JS specifically.

Also the D2 Playground seems to be ahead of D2JS, which I can only assume is down to the underlying architecture - again, hopefully this will be explained off the back of this discussion. I can only assume that the D2 Playground has a decoupled Front End / Back End to power it.

Thankfully this is a self-fulfilling prophecy due to the tooling we have at our fingertips 👍

MichaelCropper avatar Mar 24 '25 00:03 MichaelCropper

separately, document wasm interface

alixander avatar Apr 10 '25 19:04 alixander

how do i get the wasm version?

bugsbugsbux avatar Aug 22 '25 02:08 bugsbugsbux