Akihiko Odaki
917dd60cc3
Allow to have middleware for the path same with a HTML page
...
HTTP allows to change the type of the content to serve by Accept field in
the request. The middleware for the path same with a HTML page will
be inserted before the HTML renderer, and can take advantage of this
feature, using expressjs's "accepts" method, for example.
2018-04-15 23:11:08 +09:00
Rich-Harris
45142cd037
fix missing service worker
2018-04-06 14:44:50 -07:00
Rich-Harris
25809ec409
enforce stable sort
2018-03-25 15:12:35 -04:00
Rich Harris
35c30ae2c5
fix server-side fetch paths
2018-03-18 22:36:55 -04:00
Rich Harris
1e8d7d10ab
implement this.fetch ( #178 )
2018-03-17 19:21:25 -04:00
Rich Harris
9812cbd71c
add server- and client-side store management ( #178 )
2018-03-17 13:45:59 -04:00
Rich Harris
67463683cc
simplify tests
2018-03-17 13:18:18 -04:00
Rich Harris
b94481b716
Support being mounted on a path — fixes #180
2018-03-17 11:55:02 -04:00
Rich Harris
8ec433581a
a few small tweaks
2018-03-11 12:54:35 -04:00
Rich Harris
ef55fc5ddd
move built files to dist
2018-03-10 23:20:11 -05:00
Rich Harris
254e41b11e
use code-splitting etc
2018-03-10 22:26:53 -05:00
Rich Harris
45b1147228
use devalue instead of serialize-javascript - fixes #112
2018-03-10 19:27:04 -05:00
Rich Harris
1eed1023aa
switch to polka, remove unused deps
2018-03-10 09:39:07 -05:00
Rich Harris
8bb0999878
fix route sorting
2018-03-07 14:26:30 -05:00
Rich Harris
a66ac00d42
tidy up tests
2018-03-05 15:09:51 -05:00
Rich Harris
329c113723
rename preloadRoutes to prefetchRoutes
2018-03-04 22:38:55 -05:00
Rich Harris
b405e5878e
Merge branch 'master' into gh-103
2018-03-04 19:00:28 -05:00
Rich Harris
854147fa6c
URI-encodes routes - fixes #103
2018-03-04 18:59:35 -05:00
Rich Harris
7e2f5f8fb6
add preloadRoutes function - closes #160
2018-03-04 18:05:33 -05:00
Rich Harris
368e6d5cb1
bump timeout for travis
2018-03-04 15:27:35 -05:00
Rich Harris
0165c14fd9
update webpack/config
2018-03-04 12:35:13 -05:00
Rich Harris
09422e3c5a
Merge branch 'master' into gh-133
2018-03-03 14:34:22 -05:00
Rich Harris
a96fb93bfb
Fix test failures — closes #132
2018-03-03 14:33:47 -05:00
Rich Harris
17d7ca36f1
update test
2018-03-03 12:20:46 -05:00
Rich Harris
b1d072d43a
dont serve error page for unhandled server route errors - fixes #138
2018-02-28 16:54:38 -05:00
Rich Harris
58754c6d15
use blog.json instead of blog/list.json
2018-02-28 16:17:07 -05:00
Rich Harris
c36780fdc8
prevent client-side navigation to server routes - fixes #145
2018-02-28 14:23:19 -05:00
Rich Harris
58c1eb9fa8
allow dynamic parameters inside route parts - fixes #139
2018-02-28 09:39:21 -05:00
Rich Harris
19005110f1
huh, not sure why that changed
2018-02-27 19:58:49 -05:00
Rich Harris
c419c73550
fix tests
2018-02-18 12:55:56 -05:00
Rich Harris
cb12231053
implement this.error
2018-02-18 09:48:32 -05:00
Rich Harris
99d4eafb0b
argh these flaky tests are killing me
2018-02-18 08:18:14 -05:00
Rich Harris
bff6f550be
implement this.redirect in preload ( #83 )
2018-02-17 22:56:47 -05:00
Rich Harris
181d7b4a61
need to come up with a more robust approach to this...
2018-02-17 19:27:34 -05:00
Rich Harris
beb415c65d
argh
2018-02-17 19:22:05 -05:00
Rich Harris
5bbd7ead17
and again
2018-02-17 19:16:06 -05:00
Rich Harris
e11405d555
try increasing timeout
2018-02-17 19:12:47 -05:00
Rich Harris
b02183af53
fix exporting
2018-02-16 14:25:53 -05:00
Rich Harris
f9828f9fd2
work in progress
2018-02-16 12:01:55 -05:00
Rich Harris
9a760c570f
move webpack configs in test app
2018-02-14 12:25:40 -05:00
Rich Harris
3449f1eb37
add test for #105
2018-02-03 12:04:14 -05:00
Rich Harris
09a6eec83e
Merge pull request #101 from sveltejs/restructure
...
Restructure codebase
2018-02-03 11:44:57 -05:00
Rich Harris
fc631c4866
make route handling more explicit
2018-01-21 15:41:13 -05:00
Rich Harris
dd8deb2d8a
wip 3
2018-01-21 14:41:11 -05:00
Rich Harris
7d721abb2a
wip 2
2018-01-21 11:15:32 -05:00
Rich Harris
39b1fa89ce
wip
2018-01-21 11:03:23 -05:00
Rich Harris
72ae4a1c64
ugh still need to wait for requests to complete
2018-01-20 19:55:21 -05:00
Rich Harris
a09c33d6a5
return a promise from init - fixes #99
2018-01-20 19:49:41 -05:00
Rich Harris
4590aa313c
Merge pull request #96 from mrkishi/master
...
Identify js and html route clashes
2018-01-20 18:36:50 -05:00
Rich Harris
d11bd954e0
seems tests weren't actually running in appveyor? ( #98 )
...
well this was harder than it should have been
2018-01-20 18:34:30 -05:00