unpkg
proposal-import-attributes
unpkg | proposal-import-attributes | |
---|---|---|
43 | 8 | |
2,889 | 548 | |
- | 3.1% | |
0.0 | 5.9 | |
11 months ago | 3 months ago | |
JavaScript | HTML | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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.
unpkg
- Unpkg CDN down causing dependent website outages
- React Fundamentals part 2: Basic view on React core API's
- Concrete.css
-
Show HN: YouTube Musical Spectrum Bookmarklet
On platform that doesn't support browser extension (such as Google Chrome Android), you can run YouTube Musical Spectrum [1] using one of these bookmarklets:
javascript:import("https://cdn.jsdelivr.net/npm/@mfcc64/ytms/script.mjs")
javascript:import("https://unpkg.com/@mfcc64/ytms/script.mjs")
- ๐ฅ Big update: the Gowebly CLI now supports Templ
-
Automate NPM releases on GitHub using changesets ๐ฆ
{ "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", - "changelog": "@changesets/cli/changelog", + "changelog": ["@changesets/changelog-github", { + "repo": "your-org/your-repo" + }], "commit": false, "fixed": [], "linked": [], "access": "restricted", "baseBranch": "main", "updateInternalDependencies": "patch", "ignore": [] }
-
๐ฅ A next-generation CLI tool for building amazing web apps in Go using htmx & hyperscript
CLI downloads minimized versions of htmx and hyperscript (from official and trusted unpkg.com CDN) to the ./static folder and places them as separated
- Golem JavaScript Library: Latest Updates
-
Interactive Map of Linux Kernel
And the controls seem to be made with https://github.com/timmywil/panzoom:
-
CDN that bundles npm packages for browsers?
https://unpkg.com/: Seems to just provide the npm entry files straight up. Canโt use.
proposal-import-attributes
-
Power of Partial Prerendering with Bun
Bun introduces the idea of Macros into JavaScript. Macros are a new paradigm that allows optimizations ahead of time just by adding an import attribute.
-
How to use import attributes in TypeScript and JavaScript
TypeScript v5.3 builds on its JavaScript foundation by adding import attributes with the usual type safety and tooling benefits inherent to the language. You can follow the TypeScript proposal for import attributes on GitHub.
-
CSS Modules Still a Thing?
Yup, in vanilla that's fine, but I'm not sure whether bundlers etc are able to understand import assertions yet, as the spec is still being finalised - for example: the 'assert' keyword has now been officially changed to 'with', but only 'assert' is implemented anywhere at the moment.
-
If Web Components are so great, why am I not using them?
Things like HTML (and JSON) imports in ES modules, among other things, have been waiting on some safety signalling mechanics currently named "Import Attributes". Import Attributes are currently in Stage 3 [0].
The basic security story is that browsers never care about file extensions, they care about MIME types. A developer might add an import to a third-party HTML or JSON file somewhere and expect one "safe" behavior, but the third-party could just return a MIME type of "text/javascript" and inject an entire script and the browser is supposed to respect that MIME type.
To keep things safe, browsers want a way to signal that an import is supposed to JSON (or HTML or CSS) rather than JS and error if it gets back something "wrong" from a server request. That's one of the proposed uses for Import Attributes to suggest expected MIME types for non-JS modules in ES module imports.
Unfortunately, there are other proposed uses for Import Attributes (things like including hashes for integrity checks) and so there have been quite a few revisions (and multiple names) for Import Attributes trying to best support as many of the proposed uses as possible, and that has slowed progress on it a lot more than some people would wish.
[0] https://github.com/tc39/proposal-import-attributes
-
[Showoff Saturday] Replacing Abandoned Dependencies
This was an idea that I came up with when thinking about how to handle import styles from './styles.css' with { type: 'css' } in @shgysk8zer0/rollup-import. Import assertions / import attributes are now back to stage 3, but only JSON is actually progressing. So I decided to wait until there's a stable spec.
- Rails Frontend Bundling - Which one should I choose?
-
The Cost of Convenience
None of these examples will actually work in a browser, because they are non-standard. Some of you might have correctly spotted that a browser standard exists for two of the imports pointed out in the example, namely the Import Attributes proposal (previously known as Import Assertions), but these imports in their current shape will not work natively in a browser. Many of these non-standard imports exist for good reason; they are very convenient.
-
Updates from the 95th TC39 meeting
import attribute: Import Assertions re-adanced to Stage-3. Proposal for syntax to import ES modules with assertions
What are some alternatives?
gowebly - ๐ฅ A next-generation CLI tool that makes it easy to create amazing web applications with Go on the backend, using htmx, hyperscript or Alpine.js, and the most popular CSS frameworks on the frontend.
proposal-class-method-parameter-decorators - Decorators for ECMAScript class method and constructor parameters
expack - Express and Webpack boilerplate application
proposal-float16array - a proposal to add float16 TypedArrays to JavaScript
podman - Podman: A tool for managing OCI containers and pods.
proposal-await-dictionary - A proposal to add Promise.ownProperties(), Promise.fromEntries() to ECMAScript
langterm - ๐น๏ธ WebGL-based VT220 emulator, made as a learning example and frontend for a text adventure
uibuilder - Typed HTML templates using TypeScript's TSX files
TinyMCE - The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular
custom-elements - Using custom elements
Stat-Tracker - This my first project i am coding from scratch used to keep track of stats for characters on rpg games such as DnD
yhtml - Tiny html tag function for rendering Web Component templates with event binding