Commit Graph

48 Commits

Author SHA1 Message Date
186526 08b2a2b52d
Update 2022-05-19 10:05:59 +08:00
186526 010fed101f
Update. 2021-10-05 12:54:12 +08:00
Michael Jackson 4774e61d50 Add request logging 2019-08-04 23:43:21 -07:00
Michael Jackson be843179d4 Consolidate gunzip logic 2019-08-02 16:06:13 -07:00
Michael Jackson c3dc2dd014 Speed up test suite by using local npm.js stub 2019-08-01 18:01:12 -07:00
Michael Jackson 88a4213caa Fix ?meta listings
Fixes ?meta listings (and other requests) for packages with a root
"directory" entry.

Fixes #210
2019-08-01 10:05:05 -07:00
Michael Jackson 7f90203a66 Better async error handling 2019-07-30 17:06:27 -07:00
Michael Jackson 34baab07ab New "browse" UI
Also, separated out browse, ?meta, and ?module request handlers.

Fixes #82
2019-07-26 15:31:46 -07:00
Michael Jackson ea35b3c4b0 Add Google Analytics 2019-07-24 18:27:54 -07:00
Michael Jackson ab83549744 Remove addLeadingSlash util 2019-07-10 21:59:23 -07:00
Michael Jackson 40bd9dbec4 Finer-grained caching of data from npm 2019-07-10 16:27:19 -07:00
Michael Jackson ce9206f59e Add tests for stats api 2019-07-10 13:24:27 -07:00
Michael Jackson 681fc99a68 Add more tests 2019-07-09 23:50:00 -07:00
Michael Jackson d84a0296b2 Consolidate markup helpers module 2019-07-09 22:47:10 -07:00
Michael Jackson f3ecddea47 Get tests passing again 2019-07-09 17:21:25 -07:00
Michael Jackson 2e3c9ff526 Consolidate stats module 2019-07-09 16:51:39 -07:00
Michael Jackson d5022035c1 Remove secret key 2019-07-09 11:21:54 -07:00
Michael Jackson 390498fefd Remove auth 2019-07-09 11:06:49 -07:00
Michael Jackson bade9a8d28 Remove _metadata and _module routes
See #185
2019-06-10 21:02:22 -07:00
Michael Jackson 5df576c6be Add /_metadata and /_module functions
Also deprecate ?meta and ?module query params.
2019-02-23 22:04:16 -08:00
Michael Jackson 5533725f64 Remove Firebase hosting, back to Express 2019-01-26 15:20:15 -08:00
Michael Jackson 0ae074e164 Fix linting errors 2019-01-24 18:51:35 -08:00
Michael Jackson ea85062ff6 Inline scripts in HTML files 2019-01-24 15:49:21 -08:00
Michael Jackson e6134b0969 Use production globals in staging 2019-01-23 21:43:52 -08:00
Michael Jackson bbb092d974 Load React + Emotion from CDN URLs, use globals
Remove @emotion/babel-preset-css-prop and import { jsx } from
@emotion/core directly instead so Rollup can preserve imports order when
bundling (instead of @emotion/core automatically inserting itself as the
first import).
2019-01-23 21:27:58 -08:00
Michael Jackson dc2950d60f Remove blacklist code 2019-01-15 08:06:12 -08:00
Michael Jackson faa1eeae8f Do not cache auto-index pages 2019-01-14 20:33:33 -08:00
Michael Jackson 2e81715024 Stronger cache invalidation 2019-01-14 20:02:45 -08:00
Michael Jackson 86861f47e4 Do not cache the home page 2019-01-14 18:41:42 -08:00
Michael Jackson edb042a92e Move global styles inside the app 2019-01-14 13:28:52 -08:00
Michael Jackson 66b607843a Increase cache max-age for auto-index pages 2019-01-12 20:53:30 -08:00
Michael Jackson d2637cb9ea Streamline home page 2019-01-12 20:30:42 -08:00
Michael Jackson 09914c1db4 Server render the main page
Also, add hashes to asset file names and use the "entry manifest" plugin
in dev to get auto-reloading.
2019-01-12 19:27:28 -08:00
Michael Jackson ab97ff2cc4 Merge branch 'master' into firebase-hosting 2019-01-08 19:02:08 -08:00
Michael Jackson 0622848255 Increase some cache times 2019-01-08 06:47:04 -08:00
Michael Jackson 0baa63d525 Merge branch 'master' into firebase-hosting 2019-01-07 20:29:16 -08:00
Michael Jackson d6fde9fb33 Remove "immutable" from long-term responses
We had a bug recently which sent out some bad "immutable" responses. We
need to have a better process around cutting releases before we can be
sure it doesn't happen again.
2019-01-06 21:10:18 -08:00
Michael Jackson 76f05911cd Inject secret key at build time 2019-01-05 18:03:10 -08:00
Michael Jackson 31e7d3865a Experimental port to Firebase hosting 2019-01-05 17:14:36 -08:00
Michael Jackson 99312c75b0 Use consistent Cache-Tag format 2019-01-01 18:03:54 -08:00
Michael Jackson 19b2e5574b Use single quotes :P 2018-12-17 09:38:05 -08:00
Michael Jackson 21ed6ee42e Add ?module support for HTML files
Closes #113
2018-09-04 15:58:52 -07:00
Michael Jackson 2fc84dfe45 Use "immutable" Cache-Control extension
See http://bitsup.blogspot.com/2016/05/cache-control-immutable.html for
more info.

Fixes #103
Closes #119
2018-09-01 11:37:42 -07:00
Michael Jackson 185a956fb9 Move API endpoints to /api 2018-09-01 06:37:48 -07:00
Michael Jackson 7e85e1de5b Use special type for HTML 2018-07-31 15:34:34 -07:00
Michael Jackson 4605425fd8 Better title + description for auto-index pages 2018-07-31 14:29:48 -07:00
Michael Jackson 3508656831 Do not load React Router on auto-index pages 2018-07-31 14:07:35 -07:00
Michael Jackson bef8b2ebee Rename server => modules 2018-07-31 10:20:24 -07:00