Commit Graph

2052 Commits (3e5b9968b5dc24e1d60a006c2a7a2820f1264541)

Author SHA1 Message Date
Rich Harris bf094f9f25 add component.destroy() as alias of component.teardown(), to align with ondestroy
10 years ago
Rich Harris b7a2978ceb update tests
10 years ago
Rich Harris 278c1fb68e warn on onrender/onteardown, replace with oncreate/ondestroy (#40)
10 years ago
Rich Harris 85de5669f4 Merge pull request #315 from Conduitry/gh-245-keyframes-scoping
10 years ago
Conduitry 7f0dda1935 keyframes are case sensitive
10 years ago
Rich Harris b3b0e90f25 prevent duplicate imports (#308)
10 years ago
Conduitry e84dfcaa31 support scoping of keyframes declarations
10 years ago
Rich Harris 5b7294acbe use input events for two-way binding with textareas and non-checkbox/radio inputs (#10)
10 years ago
Rich Harris 1821b8a4c6 format function parameters
10 years ago
Rich Harris 47b4570b53 allow each blocks to introduce reserved words as contexts (#222)
10 years ago
Rich Harris 097294abe7 only alias imports if necessary
10 years ago
Rich Harris 8bbb2532bd prevent imported names from conflicting with built-in shared helpers (#222)
10 years ago
Rich Harris 13127cc51e add generator.helper method, use it in place of generator.uses[...]
10 years ago
Rich Harris f97fa6d58f oops
10 years ago
Rich Harris f2acb5d6b6 handle shorthand properties in expressions (fixes #296)
10 years ago
Rich Harris d5804d4d85 tidy up
10 years ago
Rich Harris aabfec4e1c fix #301, even with non-primitive values
10 years ago
Rich Harris 0fa2164691 Merge branch 'master' into gh-301
10 years ago
Rich Harris e5a10b6425 set select value after options have been created (#301)
10 years ago
Rich Harris 2fad643daa oops
10 years ago
Rich Harris c2cc5e5fb8 normalise CSS parse errors
10 years ago
Rich Harris ef4d7e2538 work around some css-tree quirks
10 years ago
Rich Harris a1b5f70d66 include CSS AST in svelte.parse output
10 years ago
Rich Harris d3bd93783b lint
10 years ago
Rich Harris 58f1d48cb0 generate valid (if incorrect) code for component bindings in each-blocks
10 years ago
Rich Harris 1e1aa466e1 Merge pull request #297 from sveltejs/gh-290-a
10 years ago
Rich-Harris f7fdb9eb32 expose context on components
10 years ago
cayasso 50693eab4a fix select option value issue (#291)
10 years ago
Rich Harris 7e65e8b0b0 populate map.sources and map.sourcesContent even if none of the original code is used
10 years ago
Rich Harris 453622b9d5 add outputFilename option for sourcemap generation
10 years ago
Rich Harris 504e1de404 use css-tree to generate CSS AST and walk it
10 years ago
Rich-Harris 1c96e276c7 only update attributes that have changed (#279)
10 years ago
Rich-Harris db1895f426 only update triples if HTML has changed
10 years ago
Rich-Harris 94878de345 use temporary variable when determining whether to update text tag
10 years ago
Rich-Harris ccfb8b2888 Merge branch 'improve-perf' of https://github.com/PaulBGD/svelte into PaulBGD-improve-perf
10 years ago
Rich Harris 88011e7f93 two-way component binding in SSR (#275)
10 years ago
Paul Sauve 9a77c63b00 Sorry for breaking the style!
10 years ago
Paul Sauve 9fd8b8bbcf Merge branch 'master' into improve-perf
10 years ago
Paul Sauve 07d6a3ba9e Check if value changes before updating
10 years ago
Rich Harris e6fbf91017 dont trigger bindings for torn-down components (#277)
10 years ago
Rich Harris daa89570b2 use internal _set method for component bindings
10 years ago
Rich Harris 606cbc29a7 handle default paramters in computed values (fixes #274)
10 years ago
Rich Harris 83deda147a Merge branch 'master' into universal-tests
10 years ago
Rich Harris e499322931 fix/skip various SSR tests
10 years ago
Rich Harris 98148a925f always flush render hooks, even if initiator is a nested component (#263)
10 years ago
Rich Harris 9dc0be3219 Merge pull request #268 from sveltejs/gh-267
10 years ago
Rich Harris 548a359582 fix apostrophe entity (#267)
10 years ago
Paul Sauve b9c868869c Style fix
10 years ago
Paul Sauve 0809d9027b Merge branch 'master' into svg-set-xmlns
10 years ago
Rich Harris 987ccd79a4 Merge pull request #265 from sveltejs/gh-264
10 years ago
Rich Harris 8fa1a17846 handle xlink attributes
10 years ago
Paul Sauve 3aa8282933 xmlns should be added as an attribute for consistency
10 years ago
Conduitry 03580ee354 use empty comments as anchors
10 years ago
Matt Steitle 5aef9af439 dontThrowParseErrorOnDoctypeDeclaration: Adding additional specification for doctype tag matching
10 years ago
Rich-Harris 711367e652 handle multiline comments in CSS - fixes #252
10 years ago
Paul Sauve 4088fccc1a Fix same issue but in SSR code
10 years ago
Arpad Borsos bf18fbf00f Move EachBlock and RawMustache detach code into shared
10 years ago
Arpad Borsos 765aaf784a DRY code a bit
10 years ago
Arpad Borsos 89b08d602f do not redefine each item, as noted in #209
10 years ago
Arpad Borsos bec7170c50 correctly update yield fragment inside each, #230
10 years ago
Rich Harris 068e4819ee Merge pull request #242 from sveltejs/gh-231
10 years ago
Rich Harris 671e959d4b fix component yields inside each blocks (#230)
10 years ago
Rich Harris 8965af378c make yield renderer names globally unique (#231)
10 years ago
Rich Harris 8422a2a1f2 dont use properties when setting <svg> element attributes (fixes #233)
10 years ago
Rich Harris cd6cd460ad add VERSION property (closes #239)
10 years ago
Rich Harris 144789550f Merge pull request #235 from PaulBGD/parse-numbers-correctly
10 years ago
Rich Harris c11b84a4e1 just use isNaN
10 years ago
Rich Harris 7830f7d380 Merge pull request #229 from Conduitry/escape-shared-path
10 years ago
Paul Sauve c601acfe7e Fix partial numbers being detected as numbers
10 years ago
Conduitry 0c8f4889fc properly escape sharedPath in generated import statement
10 years ago
Conduitry beb548e73e make addEventListener, removeEventListener, setAttribute shared
10 years ago
Rich-Harris faf50dfddc handle component directives at positions other than end (fixes #221)
10 years ago
Rich Harris 9f413bbbbe Merge pull request #225 from sveltejs/gh-224
10 years ago
Rich-Harris d685b4a23d provide useful feedback on encountering void element closing tag
10 years ago
Arpad Borsos 0ba3286da8 make html validators work inside else blocks
10 years ago
Rich-Harris 1a896dbecc allow custom path for helpers (#218)
10 years ago
Rich-Harris 8936cb98b5 handle directives on components (fixes #216)
10 years ago
Rich-Harris e462f910d0 non-standalone mode (#9)
10 years ago
Rich-Harris 27e8406a13 put component methods on prototype
10 years ago
Rich-Harris 7d12d561e8 single underscore for component private properties
10 years ago
Rich-Harris c1c1aff379 make inter-component root and yield options _private
10 years ago
Rich-Harris 1def51b7ec remove _mount indirection
10 years ago
Rich-Harris 978e35ceef move methods out of constructor
10 years ago
Rich-Harris 08331b4f8b use helpers for DOM operations
10 years ago
Rich-Harris 9c66e15bb4 naive implementation of keyed updates (#81)
10 years ago
Rich-Harris 388a3e24a3 parse @id for keyed each blocks (#81)
10 years ago
Rich Harris f142f0d533 Merge pull request #206 from sveltejs/gh-144
10 years ago
Rich-Harris 3e5d59f182 remove redundant if block to increase patch coverage
10 years ago
Rich-Harris 2948a99953 throw if options.name is illegal
10 years ago
Rich-Harris de787e81cd remove extensions from AMD dependencies – fixes #144
10 years ago
Rich-Harris f1ff567b54 merge master -> gh-202
10 years ago
Rich-Harris d6548882ff use SsrGenerator subclass
10 years ago
Rich-Harris 617b598fbb use DomGenerator subclass, instead of events
10 years ago
Rich Harris 9b0e4fdbd1 lint
10 years ago
Rich Harris 4d7784b7e4 tidy up
10 years ago
Rich Harris 63531eadd8 centralise import handling
10 years ago
Rich Harris 027096f1ad use shared generator for SSR compiler
10 years ago
Rich Harris 9d701fdba5 more refactoring
10 years ago
Rich Harris 136c22245c move createAnchor out of generator
10 years ago
Rich Harris 1e00b145cc more refactoring – sort computations, move addElement and addRenderer out of generator
10 years ago
Conduitry e72d28102a stop prepending CSS with spaces (fixes #140)
10 years ago
Rich-Harris 3fd2c60a6b move some code into generator.init
10 years ago
Rich-Harris bf0f2f812f sort methods
10 years ago
Rich-Harris c7eae0a523 create Generator class
10 years ago
Rich-Harris e1fb11a93a move some files around
10 years ago
Rich-Harris 7e5ac84e7f centralise voidElementNames
10 years ago
Rich Harris 612a505293 dont self-close elements - fixes #200
10 years ago
Rich Harris 400ccce081 include filename in error/warning objects
10 years ago
Rich Harris a5bcba1616 lint
10 years ago
Rich Harris 2e394a259e allow local data to override globals
10 years ago
Rich Harris b4c3100a6e merge master -> gh-185
10 years ago
Rich Harris 85c0381540 intercept parse errors with options.onerror
10 years ago
Rich Harris 014334128d implement triples in SSR compiler, and escape HTML for regular tags
10 years ago
Arpad Borsos 48e325f3f5 move generator into separate file
10 years ago
Rich Harris aa62c91f3d Merge pull request #183 from sveltejs/builder
10 years ago
Rich Harris b16a75ae5e Merge pull request #187 from sveltejs/gh-178
10 years ago
Rich-Harris e8fc20cc8a bump coverage – duplicate default export is handled by acorn
10 years ago
Rich-Harris 78265c5b2d throw if default export is not an object literal
10 years ago
Rich-Harris f143367ba2 use setAttribute() for list attributes – fixes #178
10 years ago
Rich-Harris 05972f7ac5 null is not an identifier
10 years ago
Rich-Harris d48b72de55 allow whitelisted globals (#185)
10 years ago
Rich-Harris 21a7fe4dd5 ensure onrender and onteardown are not arrow function expressions
10 years ago
Rich-Harris f3a0880388 error if method is an arrow function expression and uses `this` or `arguments` (#179)
10 years ago
Rich-Harris a100c608d7 fix prepending code to builders
10 years ago
Rich-Harris 84bfbcb0c5 use builders for local.init and local.update
10 years ago
Rich-Harris 7b32c881f4 use builder instead of local.mount
10 years ago
Rich-Harris 49665232eb use builders in place of local.detach and local.teardown
10 years ago
Rich-Harris b21d3ffbe8 fix detach order for triples
10 years ago
Rich-Harris f872e4e2f5 use builders everywhere
10 years ago
Rich-Harris e903d25afd use builders for init statements
10 years ago
Rich-Harris c3eba3ce40 Merge branch 'master' into builder
10 years ago
Rich-Harris f310b3541c add support for declared namespaces – fixes #147
10 years ago
Rich Harris b2ecf2ef87 Merge pull request #171 from sveltejs/gh-150
10 years ago
Rich Harris b95a2b84c6 Merge pull request #169 from sveltejs/gh-167
10 years ago
Rich Harris 111910d85b Merge pull request #170 from sveltejs/gh-162
10 years ago
Rich-Harris 96f1c5b8ac move generate/index.js over to CodeBuilder
10 years ago
Rich-Harris cce920240a add CodeBuilder utility for easier codegen
10 years ago
Rich-Harris fd3410398c make mount private (#150)
10 years ago
Rich-Harris 4f4a967fd6 support node methods in event handlers (#162)
10 years ago
Rich-Harris 2768653a47 allow event handlers to call event methods e.g. stopPropagation – closes #162
10 years ago
Rich-Harris 2c8f73f2b6 omit attributes for SSR – fixes #163
10 years ago
Rich Harris 8dd5ae5372 implement Comment in SSR compiler – fixes #165
10 years ago
Rich Harris 6a00ccbbf0 allow functions in data/computed - fixes #163
10 years ago
Rich Harris e55f273188 lint
10 years ago
Arpad Borsos 09a61da188 add a compiler option to output SSR code
10 years ago
Arpad Borsos e9c99ed9f4 restructure tests
10 years ago
Rich Harris 8aa3a2b163 implement css: false in main compiler (#153)
10 years ago
Rich Harris b1314f476b remove logging
10 years ago
Rich Harris 645d44b799 pass filename through to SSR compiler
10 years ago
Rich Harris 597aac2010 server-rendered CSS (#153)
10 years ago
Rich Harris 284c2bf8f3 rename folders to remove .gitignore confusion
10 years ago
Rich Harris 973cf04e52 move files into src in preparation for SSR integration
10 years ago