Commit Graph

2835 Commits (eb1d4f2c469b4dd1f1357083f87cfa2bfb74df0d)

Author SHA1 Message Date
Conduitry 434095f0b3 fix '~=' and class selectors with arbitrary whitespace (#4286)
7 years ago
Conduitry 2a0d3333d0 apply event modifiers to <svelte:body> events (#4279)
7 years ago
Tan Li Hau e974aff732 disallow binding variables declared in await and catch
7 years ago
John Muhl 62f1591cf9 Add more globals
7 years ago
Tan Li Hau ff07d4a818 fix allow let scoped to root element (#4266)
7 years ago
Conduitry 89e99a5a11 only attach SSR <head> markers when hydratable: true (#4260)
7 years ago
Tan Li Hau 8f6692e36a fix hydrating <head> (#4082)
7 years ago
Jesse Skinner 4ad626090e fix stringifying of attributes in presence of spread in SSR (#4247)
7 years ago
Tan Li Hau 4eec466be7 SSR should only render one <title> (#4250)
7 years ago
Tan Li Hau f5b52deb92 fix hydrating each else (#4253)
7 years ago
Tan Li Hau 9cb198800d fix actions having no access to parent nodes (#4252)
7 years ago
burningTyger dbc55cad1c remove quotes from code suggestion
7 years ago
Conduitry 981cf42a46 fix $$invalidate getting confused by an undefined third argument (#4170)
7 years ago
Conduitry 702755cc81 fix when LHS of a reactive assignment is a member expression (#4212)
7 years ago
Timothy Johnson ea2271f4b9 Pass compiler version in dev events
7 years ago
Tan Li Hau 36ca1df4c2 fix safari input jumping
7 years ago
David Kondrad 08bd8d1707 dynamic events: validate handler before executing (#4105)
7 years ago
Tan Li Hau 3c57b36b29 feat order attributes + actions too (#4156)
7 years ago
Tan Li Hau 0d6ad76d85 fix dynamic event handler for bind variables
7 years ago
David Kondrad 6bf0cae797 compiler: text util: preserve space after svg <tspan> tags (#4107)
7 years ago
Tan Li Hau 3f43be39b2 fix css specificity (#4146)
7 years ago
Tan Li Hau 546bb026bf fix destructuring in slot let binding
7 years ago
Tan Li Hau acd705b83f compile css once (#4143)
7 years ago
Colin Casey 6dcf4d91f8 FIX #2446: apply bindings and event handlers in order
7 years ago
jamesgeorge007 d6899e1e8c refactor: use Array.includes
7 years ago
Tan Li Hau a5e7ca6b38 revert remove contextual overflow (#4102)
7 years ago
Tan Li Hau c73e2ee9a9 fix invalidate while update
7 years ago
Timothy Johnson 819056ab5c propagate changes through slots with props (#4091)
7 years ago
Tan Li Hau 5e0455bb79 fix dirtybit (#4095)
7 years ago
David Kondrad 2d922f478c compiler: tag auto-subscribe stores as referenced in vars (#4089)
7 years ago
Rich Harris 2111a41f14 Merge pull request #4069 from mrkishi/invalidate
7 years ago
Conduitry 8f01bf0b6c fix bitmask overflow when using slotted components (#4077)
7 years ago
Rich Harris 7191167b54 unrelated tidy up i just realised i can now do
7 years ago
Rich Harris 4cdd1769af ci failures. clutching at straws
7 years ago
Rich Harris ba8641360b fix bitmask overflow slot updates
7 years ago
Rich Harris 1ad838fc81 handle slot updates when parent component has a bitmask overflow
7 years ago
Tan Li Hau 0d3284f423 fix: bitmask overflow better handle global (#4063)
7 years ago
Tan Li Hau df32d642e3 fix: if inside bind await block contextual dependencies
7 years ago
Benjamin W. Broersma 7a84876ada Skip JS globals for InlineComponent nodes in warn_if_undefined. (#4071)
7 years ago
Tan Li Hau df771016ff fix: loop-guard scope leak
7 years ago
mrkishi 5447c2df1c remove instrumentation from main execution context
7 years ago
Conduitry 9645ddb23c fix bare imports in `format: 'cjs'` mode (#4050)
7 years ago
Conduitry a18a36afab fix warnings for props that are only used as stores (#4021)
7 years ago
Conduitry 32f43b125b fix child context in await blocks with no `then` variable (#4022)
7 years ago
das eb5b92079b Tidy up (#4005)
7 years ago
Rich Harris 2a2a2a5a2d Merge pull request #4014 from mrkishi/raf-time
7 years ago
mrkishi 2fcfe2547e use raf's time for smoother transitions
7 years ago
Timothy Johnson 63a9d866f0 Fix listen_dev argument order
7 years ago
Tan Li Hau 9492211e5e fix handle marking global variable as dependency
7 years ago
Tan Li Hau dc67d6aa50 fix context export not working if conflicts with instance variable
7 years ago
Tan Li Hau 0678ca9172 no missing prop warning for non-writable props
7 years ago
Richard Harris b5a1d75783 update estree-walker - closes #3977, closes #3979
7 years ago
Rich Harris 78d50d02e8 Bitmask-based change tracking (#3945)
7 years ago
pngwn 7b4c796199 Add aria-hidden to resize listener object. Fixes #3948.
7 years ago
Rich Harris 679c00ef18 Merge pull request #3934 from tanhauhau/tanhauhau/dynamic-event-handler-expression
7 years ago
Tan Li Hau 01cc5b0a15 fix dynamic event handler expression
7 years ago
Rich Harris b2283ef214 Merge pull request #3927 from MattiasBuelens/video-bindings
7 years ago
Rich Harris 8d1f9a52e8 Merge pull request #3627 from simeydotme/3555-fix-flip-scaling
7 years ago
Mattias Buelens 28b1304d20 Add bindings for HTMLVideoElement.videoHeight and videoWidth
7 years ago
Mattias Buelens c16e1d7f52 Rename internal resize event for dimension bindings
7 years ago
Rich Harris 772e81ab39 Merge pull request #3650 from MattiasBuelens/more-media-bindings
7 years ago
Rich Harris cd2f8aef12 Merge pull request #3893 from NitayRabi/types---allow-access-to-typed-returned-from--.svelte
7 years ago
Rich Harris c6cfa7d7c7 tabs
7 years ago
Rich Harris 2e2c86e324 Merge pull request #3894 from tanhauhau/tanhauhau/skip-comment-for-preprocessors
7 years ago
Conduitry e9dcce76cc Deconflict dev mode block function names again (#3907)
7 years ago
Conduitry b7139fa012 Use IE-compatible js to check for unknown prop warnings (#3915)
7 years ago
Tan Li Hau 3f8dc7104a fix text content escape html (#3916)
7 years ago
Mattias Buelens 5da073c3ed Add mount condition for playbackRate and volume
7 years ago
Mattias Buelens eea13f0c13 Refactor mount code rendering for bindings
7 years ago
Mattias Buelens c228807c64 Add binding for HTMLMediaElement.ended
7 years ago
Mattias Buelens 8b09833611 Add binding for HTMLMediaElement.seeking
7 years ago
Nitay Rabinovich d051ae3cbb Export SvelteComponentDev as API
7 years ago
Tan Li Hau 028b1ce161 skip comments for preprocessors
7 years ago
Rich Harris 5c4255a53f Merge pull request #3891 from PaulMaly/patch-1
7 years ago
Tan Li Hau fe0e002872 add loopGuardTimeout options
7 years ago
Nitay Rabinovich 77fd87296e Fix linting and exporting
7 years ago
Nitay Rabinovich 553898decf Rexport SvelteComponent as SvelteComponent API
7 years ago
PaulMaly 1d407228d9 User `let` instead `var` for loop index
7 years ago
Richard Harris 37bd75ad2d add type info for createEventDispatcher - fixes #3877
7 years ago
Rich Harris 46125bbbdc Merge pull request #3886 from AlbertLucianto/fix/bind-out-of-sync
7 years ago
Rich Harris df742e37ca Merge pull request #3871 from AlbertLucianto/fix/bind-value-fails-range-max
7 years ago
Richard Harris afe3445444 Merge branch 'master' of github.com:sveltejs/svelte into fix/bind-out-of-sync
7 years ago
Richard Harris 5b36489095 helperise loop protection
7 years ago
Tan Li Hau 3f4155da2e prevent infinite loop
7 years ago
AlbertLucianto 56b6a62a8d fix binding out of sync on reactive update
7 years ago
Rich Harris 749ababf85 Merge pull request #3884 from sveltejs/gh-3882
7 years ago
Richard Harris 1b4ee64f09 neaten up hydration code - fixes #3882
7 years ago
Richard Harris bad771fa17 revert #3723, add special case for src attributes
7 years ago
Rich Harris 3d771a46ff Merge pull request #3876 from tanhauhau/tanhauhau/scoped-css-with-undefined-class
7 years ago
Richard Harris 6570cf54de reinstate block comments
7 years ago
AlbertLucianto efcab56fbd reorder add attributes to fix value validation
7 years ago
Tan Li Hau d56ae38bd9 fix undefined class with scoped-css
7 years ago
Richard Harris 58a9a3f9b8 reinstate banner
7 years ago
Rich Harris 7afddb1991 Merge branch 'master' of github.com:sveltejs/svelte into tanhauhau/use-periscopic
7 years ago
Rich Harris 89993464ee Merge branch 'master' of github.com:sveltejs/svelte into tanhauhau/dynamic-event-handler
7 years ago
Rich Harris d4fd1031a1 lint
7 years ago
Rich Harris bfcb6c71c6 encode parts of filename, not entire string
7 years ago
Rich Harris ccfa4ba118 lint
7 years ago
Tan Li Hau 9600a41214 feat dynamic event handler
7 years ago
Rich Harris 35b682c0db Merge pull request #3823 from leomarquine/fade-easing
7 years ago
Rich Harris 9fc3d33702 Merge pull request #3825 from tanhauhau/tanhauhau/unused-css-string-concat
7 years ago
Rich Harris 2af80f977f Merge pull request #3831 from tanhauhau/tanhauhau/no-create-fragment-if-not-needed
7 years ago
Rich Harris 2c0c92ec96 Merge pull request #3846 from vilarfg/feature/support-unicode-filenames
7 years ago
Rich Harris da7e392766 Merge pull request #3849 from AlbertLucianto/fix/file-input-binding-declared-last
7 years ago
Rich Harris daa2820ad6 compactify code
7 years ago
Rich Harris d87074d506 Merge pull request #3851 from tanhauhau/tanhauhau/escape-html
7 years ago
Conduitry 6c56da8983 deconflict `block` var used in dev mode (#3854)
7 years ago
Tan Li Hau 7643873a8d escape html quotes
7 years ago
AlbertLucianto a47838630f fix input binding fails if type declared last
7 years ago
Tan Li Hau 5f91e12e43 use changed(dependencies)
7 years ago
Tan Li Hau 57955a999e fix window bindings to store (#3835)
7 years ago
Fernando G. Vilar 58d5df2027 feat: support unicode filenames
7 years ago
Tan Li Hau 474de99404 Don't create a fragment at all for DOM-less components
7 years ago
Tan Li Hau bfb39d6969 feat unused css selector understands string concat
7 years ago
Tan Li Hau 74f8ea3b3c fix lint
7 years ago
Tan Li Hau 66e5d61e98 use periscopic
7 years ago
Leonardo Marquine 4ee117bb70 Add easing param to fade transition
7 years ago
Rich Harris af6d010844 Merge pull request #3811 from sveltejs/gh-3508-alt
7 years ago
Rich Harris 66de45a085 Merge pull request #3818 from sveltejs/gh-3801
7 years ago
Richard Harris 46b4478d05 add has_prop helper
7 years ago
Richard Harris 334a5ce7a7 error on empty css declarations - fixes #3801
7 years ago
Rich Harris 9d7e826624 Revert "remove empty value declaration from style tree"
7 years ago
Rich Harris bc31a93c17 Merge pull request #3812 from tanhauhau/tanhauhau/remove-empty-value-declaration
7 years ago
Rich Harris 661b474ef3 Merge pull request #3816 from tanhauhau/tanhauhau/text-content-instead-of-inner-html
7 years ago
Richard Harris 490b9387ee use hasOwnProperty, simplify prop object construction
7 years ago
Tan Li Hau 948527a609 use textContent instead of innerHtml, preventing XSS
7 years ago
Rich Harris 28a277bb91 Merge pull request #3762 from sveltejs/gh-3761
7 years ago
Tan Li Hau 856fe4027c fix css-vars case
7 years ago
Tan Li Hau 7b1e4dac3f remove empty value declaration from style tree
7 years ago
Richard Harris fc99985ec5 docs and a fix for #3761
7 years ago
Richard Harris a28badcc06 alternative fix for #3508
7 years ago
Jesper Hasselquist 2bcb82ed01 Add Event to globals list
7 years ago
Conduitry e4d47aa570 fix binding to aliased props (#3508)
7 years ago
Rich Harris 2e4db17303 Merge pull request #3802 from tanhauhau/tanhauhau/warn-unused-exports
7 years ago
Rich Harris 8a3239b6ba Merge pull request #3808 from tanhauhau/tanhauhau/mustache-tag-can-use-inner-html
7 years ago
Tan Li Hau 20d2dcd4a6 fix lint
7 years ago
Tan Li Hau c5c5822f9a feat: allow innerHtml if no dynamic dependencies
7 years ago
Conduitry d42a09440b fix SSR spread with boolean attributes (#3797)
7 years ago
Tan Li Hau 7c037a304d feat: warn unused exports
7 years ago
Conduitry 409fab4966 fix handling of style scoping and `class:` with spread scopes (#3792)
7 years ago
Richard Harris 2fb869deab tweak text of warning
7 years ago
Richard Harris c0116dee30 Merge branch 'tanhauhau/warn-when-using-tag-without-compile-options' of https://github.com/tanhauhau/svelte into tanhauhau-tanhauhau/warn-when-using-tag-without-compile-options
7 years ago
Jesse Skinner 0cf18ead30 allow multiple ancestors to be scoped with class (#3544)
7 years ago
Conduitry 42427e86b1 Don't lose `class:` directive classes on an element with `{...spread}` attributes when updating (#3781)
7 years ago
Tan Li Hau 1d0bd1a802 warn if using svelte:options tag without compile_options.customElement
7 years ago
mrkishi 2e732dc0e2 improve derived store typing for users
7 years ago
Conduitry 8741a65c16 Fix boolean attributes in presence of spread attributes (#3775)
7 years ago
Rich Harris 276bcb879a allow spring/tweened values to be initially undefined - closes #3761
7 years ago
Conduitry a0960d0ee4 update code-red etc (#3752)
7 years ago
Tan Li Hau 3ff5eb78d1 deconflict with builtins (#3724)
7 years ago
Conduitry 4d1cacf1ab produce better code for <slot/> (#3631)
7 years ago
Conduitry e213d32af5 don't consult known globals when walking Expression nodes (#3708)
7 years ago
Conduitry e102c68ddd hoist globals even if they are mentioned in a script block (#3607)
7 years ago
Conduitry a9d7ef4804 fix compound ifs with outros and no dependencies (#3595)
7 years ago
Maurício Kishi 32808fd11f fix store validation code generation (#3735)
7 years ago
Conduitry 58a92fc38b fix `bind:this` binding to a store (#3591)
7 years ago
Richard Harris 7c28fb830e snake_case
7 years ago
Richard Harris 16eac1aa02 Merge branch 'tanhauhau/await-then-catch-block' of https://github.com/tanhauhau/svelte into tanhauhau-tanhauhau/await-then-catch-block
7 years ago
Richard Harris 99554404e6 Merge branch 'tanhauhau/exported-variable-could-be-reassigned' of https://github.com/tanhauhau/svelte into tanhauhau-tanhauhau/exported-variable-could-be-reassigned
7 years ago
Rich Harris bdb299e719 simplify
7 years ago
Tan Li Hau 56c439e57d remove component locator
7 years ago
Tan Li Hau 9ab565039e name.slice to slug
7 years ago
Tan Li Hau 9f30c1fb43 DRY out :then and :catch
7 years ago
Li Hau Tan 6e18359992 then and catch block expect await, optional then block
7 years ago
Conduitry f531c65df2 preserve `$:` label in reactive blocks in SSR mode (#2828) (#3469)
7 years ago
Tan Li Hau 29aef02d6c fix typescript error
7 years ago
Tan Li Hau 3c48191b11 resubscribe props if reassigned
7 years ago
Rich Harris b0b76be144 Merge pull request #3723 from sveltejs/always-set-attribute
7 years ago
Richard Harris 2603aeba1f dont cache attribute values (ref #3579)
7 years ago
Rich Harris a64e12b875 Merge pull request #3579 from tcrowe/set-attribute-only-if-different
7 years ago
Rich Harris 8ea2aad543 Merge pull request #3701 from ryanatkn/fix-derived-store-type
7 years ago
Richard Harris 2c555b143b Merge branch 'master' of github.com:sveltejs/svelte
7 years ago
Richard Harris ca2f4bbb3c merge master -> tanhauhau/debugging-with-no-dependencies
7 years ago
das d1b95041ff continue inlining $$invalidate calls (#3548)
7 years ago
Tan Li Hau ba1660ad5a fix binding shadow the array in each block (#1565)
7 years ago
Rich Harris bbad46a96b Structured code generation (#3539)
7 years ago
Tan Li Hau 99a99376ae fix debugging with no dependencies
7 years ago
Ryan Atkinson ef54e90d97 fix type of derived store callback function
7 years ago
Tan Li Hau a119ba1239 fix globals shadowing template scope (#3674)
7 years ago
pngwn 3fcce37732 Prevent element property set from throwing errors for readonly properties. Fixes #3681.
7 years ago
Conduitry fc6661bee7 Revert "chore: resolve TODO for reusing of TransitionConfig"
7 years ago
Chris Helgert 2322c23307 chore: resolve implicit any in animate/index.ts
7 years ago
Chris Helgert ef00c4fd0d chore: resolve TODO for reusing of TransitionConfig
7 years ago
davidaq e604b20541 Change HTMLElement type check
7 years ago
mustafa0x 3ff1dd010d add `location` to globals
7 years ago
Tan Li Hau 8a789852d0 fix reactive updates not reflected when handle promise (#3660)
7 years ago
Tan Li Hau fa56b6757c should throw error if createEventDispatch is used after instantiation
7 years ago
Peter Maatman 6c625b6668 fix compound assignment dependencies in reactive statements (#3634)
7 years ago
simeydotme e56c50d70e Calculate scale factor of elements in FLIP animations
7 years ago
Tony Crowe 535cd1895d check if the attribute value is different before setting it
7 years ago
Conduitry 5ca7b48b66 rework attribute selector matching to not use regexes (#1710)
7 years ago
Conduitry 7a0ae142e5 escape `@` sigils in dev tooling events (#3545)
7 years ago
Richard Harris 82c24cf8a4 lint
7 years ago
Rich Harris e167300844 Merge pull request #3005 from RedHatter/devtools
7 years ago
Rich Harris dc0df93372 Merge pull request #3306 from cvlab/master
7 years ago
Richard Harris aaac15bafa remove $unsafe_set in favour of modified $inject_state
7 years ago
Richard Harris 6f76d13f35 merge sveltejs/master -> devtools
7 years ago
Rich Harris 8fabd206f5 Merge pull request #3538 from sveltejs/gh-3537
7 years ago
Richard Harris e4e04e590c Merge branch 'hmr' of https://github.com/Axelen123/svelte into Axelen123-hmr
7 years ago
Richard Harris 76a6d32536 invalidate store values in <script> block - fixes #3537
7 years ago