0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-22 12:27:29 +01:00
Cybernetically enhanced web apps https://svelte.dev/
Go to file
Rich Harris bde42d5676
$inspect rune (#9705)
* feat: add $log rune

* fix issues

* fix issues

* tune

* avoid static state reference validation

* work around unfortunate browser behavior

* call it ExpectedError

* cleanup

* Fix docs

* tweaks

* tweaks

* lint

* repl, dev: true

* repl dev mode

* Update sites/svelte-5-preview/src/lib/Repl.svelte

* squelch static-state-reference warning

* simplify

* remove redundant code

* Update packages/svelte/src/main/ambient.d.ts

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* Update packages/svelte/src/main/ambient.d.ts

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* Update packages/svelte/src/main/ambient.d.ts

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* only pause/trace on change

* Update packages/svelte/src/main/ambient.d.ts

* Update .changeset/chatty-hotels-grin.md

* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* $log.break and $log.trace no-op during SSR

* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>

* update test

* improve break experience

* fix ts

* remove unnecessary if (DEV) checks - log runes are removed in prod

* ensure hoisting doesnt mess up source maps

* check visited for cyclical values

* rename $log to $inspect, remove children

* custom inspect function

* implement custom inspect functions

* changeset

* update docs

* only fire on change

* lint

* make inspect take a single argument

* ugh eslint

* document console.trace trick

* demos

* fix site

---------

Co-authored-by: Dominic Gannaway <dg@domgan.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Dominic Gannaway <trueadm@users.noreply.github.com>
2023-11-29 14:31:38 -05:00
.changeset $inspect rune (#9705) 2023-11-29 14:31:38 -05:00
.github add ci on node21 (#9621) 2023-11-27 08:37:37 -05:00
.vscode configure search.exclude (#9472) 2023-11-15 14:36:16 -05:00
documentation blog: fix typo in 'svelte.dev: A complete overhaul' blog entry (#9438) 2023-11-14 11:08:38 -08:00
packages/svelte $inspect rune (#9705) 2023-11-29 14:31:38 -05:00
playgrounds $inspect rune (#9705) 2023-11-29 14:31:38 -05:00
sites $inspect rune (#9705) 2023-11-29 14:31:38 -05:00
.editorconfig chore: remove unnecessary indent_size from editorconfig (#5992) 2021-02-17 15:57:35 -05:00
.eslintignore breaking: init Svelte 5 2023-11-10 15:48:23 +01:00
.eslintrc.cjs breaking: init Svelte 5 2023-11-10 15:48:23 +01:00
.gitattributes Add a linguist configuration (#5878) 2021-01-18 11:46:51 -08:00
.gitignore configure search.exclude (#9472) 2023-11-15 14:36:16 -05:00
.npmrc chore: Skip playwright instaling browsers (#8935) 2023-07-07 17:39:10 +05:30
.prettierignore feat: support type annotations in {@const ...} tag (#9609) 2023-11-27 08:39:29 -05:00
.prettierrc Docs (#9449) 2023-11-14 18:09:32 -05:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md (#7183) 2022-01-25 08:48:47 +00:00
CONTRIBUTING.md rename dev script, update contributor guide and readme (#9673) 2023-11-28 17:27:49 -05:00
LICENSE.md Update license year (#8227) 2023-01-27 11:22:52 -05:00
package.json chore: remove obsolete script 2023-11-15 14:42:49 +01:00
pnpm-lock.yaml site: remove banner (#9620) 2023-11-28 16:32:51 -08:00
pnpm-workspace.yaml chore: move playground (#9131) 2023-08-22 15:00:33 -07:00
README.md rename dev script, update contributor guide and readme (#9673) 2023-11-28 17:27:49 -05:00
vitest.config.js breaking: init Svelte 5 2023-11-10 15:48:23 +01:00

Cybernetically enhanced web apps: Svelte

license Chat

What is Svelte?

Svelte is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.

Learn more at the Svelte website, or stop by the Discord chatroom.

Supporting Svelte

Svelte is an MIT-licensed open source project with its ongoing development made possible entirely by fantastic volunteers. If you'd like to support their efforts, please consider:

Funds donated via Open Collective will be used for compensating expenses related to Svelte's development such as hosting costs. If sufficient donations are received, funds may also be used to support Svelte's development more directly.

Roadmap

You may view our roadmap if you'd like to see what we're currently working on.

Contributing

Please see the Contributing Guide and the svelte package for information on contributing to Svelte.

svelte.dev

The source code for https://svelte.dev lives in the sites folder, with all the documentation right here. The site is built with SvelteKit.

Is svelte.dev down?

Probably not, but it's possible. If you can't seem to access any .dev sites, check out this SuperUser question and answer.

License

MIT