Commit Graph

219 Commits

Author SHA1 Message Date
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 b67e58d985 Consolidate npm utils in the same file 2019-07-09 16:16:43 -07:00
Michael Jackson 08c66598a0 Minor tweaks to client code 2019-07-09 16:13:55 -07:00
Michael Jackson 69030142da Tighten up global ESLint config 2019-07-09 15:43:45 -07:00
Michael Jackson a3df5eb480 Tighten up ESLint client config 2019-07-09 14:29:20 -07:00
Michael Jackson d5022035c1 Remove secret key 2019-07-09 11:21:54 -07:00
Michael Jackson c06657d9a7 Remove log ingestion 2019-07-09 11:10:41 -07:00
Michael Jackson 390498fefd Remove auth 2019-07-09 11:06:49 -07:00
Michael Jackson aded6f9dbc Decrease CDN cache time to 10 mins
Fixes #186
2019-07-03 14:32:32 -07:00
Michael Jackson 90473733a5 Do not return non-ESM on ?module requests 2019-07-02 21:16:28 -07:00
Jakub Jastrzębski c906861d8f Add space before `<code>` tag 2019-07-02 11:33:26 -07:00
Michael Jackson bfecd1955a Fix module resolution
Fixes a bug where a directory with the same name as a file would be used
as the matching entry instead of that file depending on the order they
appear in the tarball.
2019-06-10 21:02:29 -07:00
Michael Jackson 397a9f8915 Inline query sanitizer 2019-06-10 21:02:29 -07:00
Michael Jackson bade9a8d28 Remove _metadata and _module routes
See #185
2019-06-10 21:02:22 -07:00
Michael Jackson 59e402a41e Merge branch 'percent-40' of https://github.com/wmhilton-contrib/unpkg.com into wmhilton-contrib-percent-40 2019-04-08 17:38:13 -07:00
Simey de Klerk fe11175f9d add space between in and `package.json` 2019-04-08 17:33:02 -07:00
Jason Miller ab78e4f64e Preserve minification semantics when transforming bare import specifiers (fixes #149) 2019-03-20 14:55:32 -07:00
Michael Jackson da7b915cca Update percentage decimal places 2019-02-25 22:20:30 -08:00
Michael Jackson 5df576c6be Add /_metadata and /_module functions
Also deprecate ?meta and ?module query params.
2019-02-23 22:04:16 -08:00
William Hilton 1ee88d0166
Merge branch 'master' into percent-40 2019-02-01 12:17:42 -05:00
Michael Jackson d560b6281f Use CORS in front of static server 2019-01-30 08:05:19 -07:00
Michael Jackson 154b732540 Deploy staging on App Engine standard 2019-01-29 14:57:39 -08:00
Michael Jackson 20c4926e13 Lengthen cache ttl on 404s 2019-01-28 12:15:05 -08:00
Michael Jackson 21ce9c50cf Trust the X-Forwarded-For header 2019-01-26 22:08:42 -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 6228f0de5c Update plugin signature 2019-01-23 16:03:27 -08:00
Michael Jackson 3526660620 Tweak max-age for semver/tag redirects 2019-01-17 19:13:56 -08:00
Michael Jackson 276013696e Cache 302s for 4 hours 2019-01-17 18:36:46 -08:00
Michael Jackson 949c40f11e Hide verbose logs behind debug flag 2019-01-15 16:43:52 -08:00
Michael Jackson 7800180d3b Fix linting errors 2019-01-15 14:57:09 -08:00
Michael Jackson 3fd7ef86f3 Update home page 2019-01-15 14:49:02 -08:00
Michael Jackson 9cdcf90c8a Add HTTP request logging 2019-01-15 08:42:54 -08:00
Michael Jackson dc2950d60f Remove blacklist code 2019-01-15 08:06:12 -08:00
Michael Jackson 5e7323f389 Remove incrementCounter utility 2019-01-15 07:59:53 -08:00
Michael Jackson 83cb7af8b0 Use express.Router directly 2019-01-15 07:56:26 -08:00
Michael Jackson 9cd9fb1f9b Remove auto-index function 2019-01-14 20:41:51 -08:00
Michael Jackson faa1eeae8f Do not cache auto-index pages 2019-01-14 20:33:33 -08:00
Michael Jackson 328fda2d16 More margin tweaks 2019-01-14 20:14:25 -08:00
Michael Jackson 0e143977cf Small margin tweak 2019-01-14 20:10:19 -08:00
Michael Jackson 2e81715024 Stronger cache invalidation 2019-01-14 20:02:45 -08:00
Michael Jackson f01d23da1d Add Angular + GCP sponsorship info 2019-01-14 19:56:36 -08:00
Michael Jackson 86861f47e4 Do not cache the home page 2019-01-14 18:41:42 -08:00
Michael Jackson 3fd2a6cd66 Show stats on initial render if they are cached 2019-01-14 18:41:32 -08:00
Michael Jackson 20fcc24d14 Do not underline links 2019-01-14 16:25:34 -08:00
Michael Jackson 8cc9273fdc Use correct default origin 2019-01-14 16:03:09 -08:00
Michael Jackson 1cd8a5490d Remove d3 from bare URL examples 2019-01-14 15:57:36 -08:00
Michael Jackson edb042a92e Move global styles inside the app 2019-01-14 13:28:52 -08:00
Michael Jackson c75a32c60a Small tweaks 2019-01-12 21:30:59 -08:00
Michael Jackson d13fedd940 Use css prop 2019-01-12 21:23:31 -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 59be66f552 Remove all PropTypes in production 2019-01-12 19:32:16 -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 45c48cba26 Merge branch 'master' into firebase-hosting 2019-01-08 21:11:12 -08:00
Michael Jackson 0baec61184 Experiment w cache times on redirects 2019-01-08 20:54:16 -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 e83103c6b5 Increase redirect timeout to 5 minutes 2019-01-06 21:15:24 -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
William Hilton 6a126115bc
fix const error 2019-01-02 15:56:24 -05:00
William Hilton 6740f76d17
fix: decode `%40` before splitting URLs by `@` 2019-01-02 15:32:09 -05:00
Michael Jackson 99312c75b0 Use consistent Cache-Tag format 2019-01-01 18:03:54 -08:00
Michael Jackson ea7f3ab3f3 Merge branch 'master' of https://github.com/vamshi29292/unpkg.com into vamshi29292-master 2018-12-20 20:02:19 -08:00
Michael Jackson 961ea49ac4 Add back missing package config data
Fixes #156
2018-12-20 15:09:06 -08:00
Michael Jackson 59a5acbe08 Switch back to in-memory cache 2018-12-17 15:57:44 -08:00
Michael Jackson aa99d11068 Limit package info we keep in cache 2018-12-17 14:02:59 -08:00
Michael Jackson 995a977e59 Re-use route function 2018-12-17 13:59:04 -08:00
Michael Jackson 19b2e5574b Use single quotes :P 2018-12-17 09:38:05 -08:00
Michael Jackson 4fd697aec1 Upgrade to Babel 7
Also, update to webpack 4 and add support for dynamic import() and
import.meta in ?module mode.

Fixes #108
Fixes #151
2018-12-06 07:13:33 -05:00
Michael Jackson fde375782c Fix ESLint warnings 2018-12-04 16:41:37 -08:00
Brian Ambielli 7075ebdbb9 update(fix-cache-control-documentation): fixing about.md which incorrectly noted how long cache-control headers were set for 2018-11-27 21:25:28 -08:00
Michael Jackson 0bc640962c Close database connections after running tests 2018-10-30 20:30:13 -07:00
Vamshi Palreddy 2592c5eca6 Ignore multiple slashes in file path. 2018-10-29 03:25:52 +05:30
Michael Jackson 9b9ded57e7 Fix caching issue
Fixes #138
2018-10-19 07:32:08 -07:00
Michael Jackson 9dbe412783 Do not serve index.html files at / URLs
This actually broke some old behavior in packages that publish
index.html files but aren't counting on unpkg to serve them.

Closes #130
2018-09-24 10:37:02 -07:00
Michael Jackson 5fac968215 Better variable name 2018-09-05 07:32:02 -07:00
Michael Jackson 21ed6ee42e Add ?module support for HTML files
Closes #113
2018-09-04 15:58:52 -07:00
Michael Jackson 311a1ffa7e Use 0 instead of a string for missing packages 2018-09-04 07:39:45 -07:00
Michael Jackson 29b7725597 Continue when blacklist is unavailable 2018-09-03 11:30:55 -07:00
Michael Jackson f0d05ea756 Fighting spam :/ 2018-09-03 09:26:43 -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 fe485060ff Remove "only" 2018-09-01 11:29:32 -07:00
Michael Jackson e04db2c49c Fix auth using header 2018-09-01 09:36:48 -07:00
Michael Jackson 185a956fb9 Move API endpoints to /api 2018-09-01 06:37:48 -07:00
Michael Jackson f86b294e16 Remove language about not being ready for production 2018-08-30 16:15:12 -07:00
Michael Jackson 82d404a973 Introduce different log levels 2018-08-25 23:49:44 -07:00
Michael Jackson fe4ccec4e2 Simplify log ingestion timer 2018-08-25 20:14:49 -07:00
Michael Jackson 995780bcbb Timeout after 25s 2018-08-25 18:19:50 -07:00
Michael Jackson 30cd271339 Do not timeout after 10s 2018-08-25 17:35:52 -07:00
Michael Jackson a3d97a45c6 Use Sentry error reporting 2018-08-25 16:50:43 -07:00
Michael Jackson 6d57d95b7f Increase max-age on some redirects 2018-08-07 18:59:45 -07:00