use observablehq:stdlib instead of npm:@observablehq/stdlib#1670
Conversation
|
Should I expand this to include other built-in libraries @Fil? Basically anything that I don’t think is really worth it to publish as a standalone library to npm? (We could always publish it to npm in the future if there’s demand to use a library outside of Framework, but most of these are pretty trivial…) And should I add an “Observable imports” section to the Imports documentation that describes the |
|
Yes it would be good to clarify all of this. Doesn't seem blocking for this PR though. |
|
I sketched out what it would look like to use e.g. |
|
TODO Add documentation for |
The goal here is to differentiate packages that are built-in to Framework from ones that are published and loaded from npm. This PR only makes this change for the standard library (
observablehq:stdlib), but if other built-in modules are provided in the future, we could useobservablehq:for that, too.Note that there are several other libraries such as
npm:@observablehq/dotthat we intend to publish to npm in the future, but for pragmatism are currently implemented as built-ins. We don’t want to switch these toobservablehq:because the desired future state is for these libraries to be published to and imported from npm rather than being built-in.Also some libraries as
npm:@observablehq/xlsxandnpm:@observablehq/zipshould be private built-ins as these are not intended to be published to npm nor imported directly; they are only intended to be used byFileAttachmentand are imported asobservablehq:stdlib/xlsxandobservablehq:stdlib/zip.Related #852.