download-esm
simpatico
Our great sponsors
download-esm | simpatico | |
---|---|---|
1 | 2 | |
82 | 7 | |
- | - | |
5.1 | 9.7 | |
9 months ago | 15 days ago | |
Python | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
download-esm
-
JavaScript import maps are now supported cross-browser
This downloads the ESM version of Observable Plot from the jsDelivr CDN, figures out its dependencies, downloads them as well (40 files total!) and rewrites their imports to be local, not CDN paths.
More details here: https://simonwillison.net/2023/May/2/download-esm/
I'm not considering adding import maps support: https://github.com/simonw/download-esm/issues/4
simpatico
-
JavaScript import maps are now supported cross-browser
>Does this mean that in theory i could skip the build/bundling step entirely?
You can but you must write your app in something the browser understands (js not ts, css not sass etc) and use native modules. For example, here is the test harness for a custom module, written in pure html with no build step: https://github.com/javajosh/simpatico/blob/master/combine2.h.... Here is a more complex (and much older) example from Crockford: https://www.jslint.com/
And yes, the experience developing this way is quite nice!
-
Deno Joins TC39
*>...use types [at] runtime..."
Two things. First, TS conceives of itself as having no runtime component. If it did, I think people (including the TS devs) would be more confused.
Second, I'd say rather we need a runtime type system. In fact I've tried my hand at writing one in the most minimalist way possible, and have been working on it recently [1]. The type system is explicit in that a type is a JSON like object, similar to JSON schema, but 100x less code.
[1] https://github.com/javajosh/simpatico/blob/master/friendly.h... This is effectively the test harness for the module.
What are some alternatives?
compression-dictionary-transport
proposal-resizablearraybuffer - Proposal for resizable array buffers
webappsec-subresource-integrity - WebAppSec Subresource Integrity
zod - TypeScript-first schema validation with static type inference
esm.sh - A fast, smart, & global CDN for modern(es2015+) web development.
lit - Lit is a simple library for building fast, lightweight web components.
proposal-import-assertions - Proposal for syntax to import ES modules with assertions [Moved to: https://github.com/tc39/proposal-import-attributes]
esbuild - An extremely fast bundler for the web
proposal-type-annotations - ECMAScript proposal for type syntax that is erased - Stage 1
proposal-do-expressions - Proposal for `do` expressions