Commit Graph

2052 Commits (3e5b9968b5dc24e1d60a006c2a7a2820f1264541)

Author SHA1 Message Date
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