0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

386 Commits

Author SHA1 Message Date
Rich Harris
3595470305 validate namespaces 2017-04-12 10:05:06 -04:00
Rich-Harris
a47a679e38 replace all invalid characters in attribute names when creating variables (fixes #470) 2017-04-12 08:27:52 -04:00
Rich Harris
faa287f5f3 Merge pull request #468 from sveltejs/gh-465
[WIP] catch hardcoded names that should be aliases
2017-04-11 11:56:28 -04:00
Rich Harris
79b5ce090e Merge branch 'master' into gh-465 2017-04-11 11:05:42 -04:00
Rich Harris
7176001963 Merge branch 'master' into readonly-dev-warning 2017-04-11 11:04:45 -04:00
Rich Harris
229d9f0a5f Merge pull request #461 from sveltejs/gh-404-scroll
window scroll bindings are bidirectional
2017-04-11 11:03:53 -04:00
Rich Harris
a793398d63 catch hardcoded names that should be aliases (#465) 2017-04-11 10:09:56 -04:00
Rich Harris
352bb3d354 ensure hoisted event handler names are globally unique — fixes #466 2017-04-11 09:38:34 -04:00
Rich Harris
c61ce134df move some tests to where they belong 2017-04-11 09:25:56 -04:00
Conduitry
86035c3f99 unit test 2017-04-10 18:58:05 -04:00
Rich Harris
5f2c6e3c19 merge master -> readonly-dev-warning 2017-04-10 17:54:29 -04:00
Rich Harris
8b38b2b802 throw if user sets read-only properties in dev mode 2017-04-10 17:47:47 -04:00
Rich Harris
783cd383e3 window scroll bindings are bidirectional (#404) 2017-04-10 16:08:19 -04:00
Rich Harris
79c456333c Merge pull request #460 from sveltejs/gh-450
collapse consecutive if-statements with the same condition (#450)
2017-04-10 15:17:46 -04:00
Rich Harris
9c166a86f0 Merge pull request #459 from sveltejs/gh-189
don't create whitespace nodes inside elements like <select>
2017-04-10 15:16:45 -04:00
Rich Harris
2852b96e65 collapse consecutive if-statements with the same condition (#450) 2017-04-10 15:10:02 -04:00
Rich Harris
182a04e8fc dont create whitespace nodes inside elements like <select> (#189) 2017-04-10 14:54:19 -04:00
Rich Harris
99d6502bfd better error for attempts to use getters/setters for methods. closes #425 2017-04-10 14:20:50 -04:00
Rich Harris
93e51d6ef3 correctly bind one-way select value attributes (#423) 2017-04-10 13:50:12 -04:00
Rich Harris
1e2c8593f2 hoist some event handlers, rewrite non-hoisted ones to avoid binding 2017-04-10 11:26:06 -04:00
Rich-Harris
31269e84f0 failing test for #433 2017-04-08 17:41:26 -04:00
Rich-Harris
731f09d173 Merge branch 'master' into refactor 2017-04-08 17:26:07 -04:00
Rich Harris
35113bdee1 Merge pull request #448 from sveltejs/gh-441
reverse pre and post to fix deferred observers
2017-04-08 17:25:24 -04:00
Rich-Harris
858c6b5e82 add gitkeep file so tests pass in CI 2017-04-08 16:12:54 -04:00
Rich-Harris
421f3d698f separate current *fragment* from current *generator state* 2017-04-08 14:37:29 -04:00
Rich-Harris
d93a3698fb all tests passing once more. now the real work begins 2017-04-08 12:42:27 -04:00
Rich Harris
c0442b5eb1 another horrible half-done commit 2017-04-07 16:23:28 -04:00
Rich Harris
063e76f322 baby steps... 2017-04-06 16:45:18 -04:00
Rich Harris
11033c2f20 minor test tweaks 2017-04-06 15:45:26 -04:00
Taylor Zane Glaeser
3ed4dc68ee Fixes #452. Fixed an issue that caused setting computed to an empty object to prevent the component from compiling. 2017-04-04 22:41:49 -05:00
Rich Harris
f43e71b959 remove #433 test for now 2017-04-04 17:55:31 -04:00
Rich Harris
803d1d2746 move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 2017-04-04 12:05:54 -04:00
Rich Harris
7219202471 reverse pre and post to fix deferrerd observers (fixes #441) 2017-04-04 11:51:30 -04:00
Rich Harris
3fcbf428bd while we're at it, remove unused stuff from generated SSR code 2017-04-04 10:21:19 -04:00
Rich Harris
4b5754b9a7 centralise logic for manipulating source javascript 2017-04-04 09:31:42 -04:00
Rich Harris
3881f5f84b Merge pull request #445 from sveltejs/gh-442-b
generate more idiomatic code when removing object properties
2017-04-04 07:47:32 -04:00
Rich-Harris
90b9dc84ad fix broken proto helper 2017-04-04 07:09:54 -04:00
Rich-Harris
91bf849cc7 generate more idiomatic code when removing object properties 2017-04-03 21:39:49 -04:00
Rich Harris
9da4e80aa7 Merge pull request #443 from sveltejs/gh-431
use assign helper, to avoid compatibility headaches
2017-04-03 20:23:17 -04:00
Rich Harris
ced1de84b3 Merge pull request #422 from sveltejs/gh-419
use snake case in generated identifiers (#419)
2017-04-03 20:14:56 -04:00
Rich-Harris
e592c052aa use assign helper, to avoid compatibility headaches 2017-04-03 18:38:21 -04:00
Rich Harris
63011075f0 Merge pull request #438 from sveltejs/gh-436
read values from range/number inputs as numbers
2017-04-02 18:01:04 -04:00
Rich-Harris
75e8d6205e better error for bind:value="{{foo}}" - fixes #437 2017-04-02 17:54:04 -04:00
Rich-Harris
605040ddb7 read values from range/number inputs as numbers - fixes #436 2017-04-02 17:44:00 -04:00
Rich-Harris
05ea031895 prevent unclosed <script> causing infinite loop 2017-04-02 13:46:06 -04:00
Rich-Harris
fc646925db make it easier to run parser tests solo 2017-04-02 13:45:01 -04:00
Rich-Harris
1a49c2f344 Merge branch 'master' into gh-424 2017-04-02 09:19:25 -04:00
Rich Harris
6074178c65 Merge pull request #427 from sveltejs/gh-423
Make <select> elements use .value prop to update value
2017-04-02 09:16:19 -04:00
Rich Harris
0d5d7ff6bf Merge pull request #429 from sveltejs/gh-428
Bind callback passed to custom events to the node context
2017-04-02 08:45:42 -04:00
Rich Harris
132de5cf72 Merge pull request #430 from sveltejs/disallow-import-root
disallow `import root` during validation
2017-04-02 08:35:44 -04:00