Commit Graph

144 Commits (c7c8e19ec1fe044f16c5ebc6633b14a04e0ad363)

Author SHA1 Message Date
Rich Harris 428784d570 Merge branch 'gh-1118' into gh-1118-base36
8 years ago
Rich Harris c6bba03f1d use external is-reference library
8 years ago
Rich Harris 1ad28e6fe6 use base36 for style classes
8 years ago
Conduitry 205bb37d2d fix escaping of template string characters
8 years ago
Rich Harris 935d4a2955
Merge pull request #1134 from sveltejs/gh-1132
8 years ago
Conduitry 7fa293ee6b fix handling of CRs in debugging comments (#1132)
8 years ago
Conduitry 94da329305 another stab at #1062; also fix attribute case in static HTML
8 years ago
Rich Harris 9fbcddf338 base stylesheet.hash on css content, and revert parsed.hash
8 years ago
Rich Harris a85b09ea97 handle wacky identifier names in templates
8 years ago
Rich Harris 66b64e254d types
8 years ago
Rich Harris 1833bc194f use acorn.isIdentifierStart and isIdentifierChar to determine validity
8 years ago
Rich Harris 728d2fa9fb deconflict referenced globals - fixes #1079
8 years ago
Conduitry 8c8f9703a0 in stringified Text nodes, only escape &, <, >
8 years ago
Rich Harris 7026222792 escape HTML - fixes #1066
8 years ago
Emil Ajdyna d561c93841 Check against this usage in computed functions
8 years ago
Efthymis Sarmpanis b1909dc19b Properly override toString in CompileError
8 years ago
Rich Harris a8eaa7e95c refactor
8 years ago
Rich Harris c9aa72313e throw error on illegal context (#934)
8 years ago
Rich Harris 0a01aa0243
Increase code coverage
8 years ago
Rich Harris 51901442c9
attach globals to state object on initialisation
8 years ago
Rich Harris 775866780e
combine multiple bindings in single handler, implement bind:indeterminate — fixes #910
8 years ago
Rich Harris bcae68de06 treat quoted property names the same way as identifiers - fixes #914
8 years ago
Rich Harris dc3785c1e2 fix escaping of %-prefixed names
8 years ago
Rich Harris 64026c3ba9 Merge pull request #854 from sveltejs/gh-782
8 years ago
Rich Harris b1cbffece6 remove excess parentheses
8 years ago
Rich Harris 58cc7f8ed1 allow console.* calls in event handlers. fixes #782
8 years ago
Rich Harris a90e072086 alt-text
8 years ago
Rich Harris 228a7808ac optimize style attributes
8 years ago
Rich Harris 361a19df17 wrap fallback hydration code in conditional
8 years ago
Rich Harris aa183df289 fallback content
8 years ago
Rich Harris d734a6b823 start work on <slot>
8 years ago
Rich Harris 9053e95460 rename addConditionalLine to addConditional
8 years ago
Rich Harris 4dd5fc5594 apply optimisation to raw tags
8 years ago
Rich Harris 531354fc39 only cache values when it makes sense
8 years ago
Conduitry 0e9f16b589 don't over-escape '#' in sharedPath
8 years ago
Conduitry b869e48bff saner escaping/unescaping of `@` and `#` sigils
8 years ago
Rich Harris b99e9207ac reuse helper
8 years ago
Rich Harris a524ab273e fix escaping/unescaping — closes #741
8 years ago
Rich Harris ac3c1086e3 use Records to remove TS errors
9 years ago
Rich Harris bd9c59aa5a fix various typescript errors
9 years ago
Rich Harris 815c17cbe7 fix unescaping edge case
9 years ago
Rich Harris fd177771af remove unused code
9 years ago
Rich Harris 65e27c98a0 reduce duplication by moving validation into stylesheet
9 years ago
Rich Harris 7a752df55d fix handling of modified :global(...) selectors
9 years ago
Rich Harris 5f6db88538 allow :global(...) selectors to have trailing modifiers
9 years ago
Rich Harris f485c25620 create reusable walkRules helper
9 years ago
Rich Harris 5499327a70 refactoring, and more :global(...) fixes
9 years ago
Rich Harris ebae9f9c28 run prettier
9 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
9 years ago
Rich Harris 135f626395 include ast in svelte.compile return value (#632)
9 years ago
Rich Harris 596ab3a7fe remove TODO, is now taken care of
9 years ago
Rich Harris e0917fd874 allow components to have computed member expressions for bindings (fixes #624)
9 years ago
Rich Harris 4b1f1e8392 TS-ify spaces.js and deindent.js, so they get included in prettier task
9 years ago
Rich Harris b0a1616e31 add trailing commas to prettier config, only run on .ts files
9 years ago
Rich Harris 84595fb381 run prettier on src, update tests
9 years ago
Rich-Harris 4d5107113e more TS
9 years ago
Rich-Harris 48384b846c typescriptify validator
9 years ago
Rich-Harris 7c3fca57cf more typescript conversion
9 years ago
Rich-Harris 8d07a5f9bd gah, rollup needs the file extensions. which idiot wrote it
9 years ago
Rich-Harris e85bec00a2 add a few type annotations
9 years ago
Rich-Harris 13b87acfb9 remove .ts file extensions
9 years ago
Rich-Harris 1c5e6e7430 rename all (almost) .js files
9 years ago
Rich-Harris 0d67026904 more simplification
9 years ago
Rich-Harris a5f7fe79ea collapse constructor block into builders.main
9 years ago
Rich-Harris 65064cb70c improve deindent slightly — allow inline false expressions (which get removed), and trim trailing tabs
9 years ago
Rich-Harris 8ccad1f107 first working intro transition, woooo
9 years ago
Rich-Harris e345287a76 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris 9f2bd988a0 collapse text around comments
9 years ago
Rich-Harris a59e017fad separate if statements in codebuilder
9 years ago
Rich-Harris 51ff9ecfa6 allow helpers to depend on one another (closes #481)
9 years ago
Rich Harris 3595470305 validate namespaces
9 years ago
Rich Harris 2852b96e65 collapse consecutive if-statements with the same condition (#450)
9 years ago
Rich-Harris caec96f9da make abstract removeNode function
9 years ago
Rich-Harris 91bf849cc7 generate more idiomatic code when removing object properties
9 years ago
Rich-Harris cf626ff880 retain binding sourcemaps to the extent possible
9 years ago
Conduitry 6d1623cf0e new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
9 years ago
Conduitry e3055d765e fix removeObjectKey when removing last key in object and it has a trailing comma
9 years ago
Conduitry 8e5c7ed21e removeObjectKey API tweak
9 years ago
Conduitry 77321f8356 remove `namespace` key from generated code
9 years ago
Rich Harris 5866a99b9a treat binding values as expressions
9 years ago
Conduitry 52b3a43e7b accept DOCTYPE element in any case
9 years ago
Matt Steitle 522f293766 dontThrowParseErrorOnDoctypeDeclaration: Adding additional specification for doctype tag matching
9 years ago
Rich-Harris e45b15c3da centralise voidElementNames
9 years ago
Rich Harris 6444e8da29 merge master -> gh-185
9 years ago
Rich-Harris 1cfbfb05d0 null is not an identifier
9 years ago
Rich-Harris c353aa2447 allow whitelisted globals (#185)
9 years ago
Rich-Harris a9c4b92493 fix prepending code to builders
9 years ago
Rich-Harris 3e57814b76 use builders for local.init and local.update
9 years ago
Rich-Harris 5fa2cd24c4 use builders everywhere
9 years ago
Rich-Harris 0551d2646a Merge branch 'master' into builder
9 years ago
Rich-Harris fbe130835d add support for declared namespaces – fixes #147
9 years ago
Rich-Harris a1225d5adf add CodeBuilder utility for easier codegen
9 years ago
Rich-Harris 65a99c9161 support node methods in event handlers (#162)
9 years ago
Rich Harris 7684afb2f8 move files into src in preparation for SSR integration
9 years ago