Commit Graph

219 Commits

Author SHA1 Message Date
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
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 eb51b9df26 Fix Jest setup 2018-07-31 11:03:02 -07:00
Michael Jackson 88f8b1683b Tolerate missing X-Forwarded-For header in production 2018-07-31 10:23:12 -07:00
Michael Jackson bef8b2ebee Rename server => modules 2018-07-31 10:20:24 -07:00
MICHAEL JACKSON 0f5c584104 Rewrite frontend using create-react-app 2017-03-25 23:57:22 -07:00
Michael Jackson fc2eda1576 Use "loose" option to babel-preset-es2015 2017-03-24 18:16:07 -07:00
Michael Jackson f8c796c8f8 Co-locate Babel config with modules 2017-03-24 18:16:07 -07:00
Michael Jackson 7235fdfb0b Fix linting error 2017-03-24 18:16:07 -07:00
Michael Jackson 503b24e8d0 Use CommonJS for server modules 2017-03-24 18:16:07 -07:00
Barney Carroll 67b7fb6d32 Fix #26 🐦 🔫 2017-02-24 18:29:33 +00:00
Michael Jackson 0ec0fcd7c1 Use express-unpkg 2017-02-09 21:04:06 +11:00
Michael Jackson ccd2a86431 Update Cloudflare name and logo 2017-01-25 08:06:16 -08:00
Michael Jackson 3aaa3d6e99 Update docs 2016-12-23 12:08:55 -08:00
Michael Jackson 438c22ef49 Update favicon 2016-12-10 07:54:20 -08:00
Michael Jackson 7dc6fdcbc7 Update links 2016-09-30 07:18:42 -07:00
Michael Jackson 17d86555fa Fix typo 2016-09-29 10:31:50 -07:00
Michael Jackson 55f09dcc2c Add description 2016-09-29 10:29:58 -07:00
Michael Jackson 24a48d4720 Add more margin to <h3>s 2016-09-27 15:04:27 -07:00
Michael Jackson 93a755a0b4 Update favicon 2016-09-26 11:09:33 -07:00
Michael Jackson 3b1502d1ab More consistent fonts 2016-09-24 11:41:19 -07:00
Michael Jackson 9cafde2245 Add favicon link 2016-09-24 10:28:01 -07:00
Michael Jackson 3fb273a680 Update fonts 2016-09-24 10:24:24 -07:00
Michael Jackson 2d48bd4ca6 Remove unused styles 2016-09-24 10:22:30 -07:00
Michael Jackson 54011c9a5e Remove unused file 2016-09-24 10:21:11 -07:00
Tim Dorr e9ee648cb3 Update versions on the home page
This was bothering me for no good reason :P
2016-09-16 11:32:50 -04:00
Michael Jackson 3476c075be Revert "Redirect home page traffic to unpkg.com"
This reverts commit 855988865d.
2016-09-12 20:04:25 -07:00
Michael Jackson 469102ab52 Combine stats from npmcdn.com + unpkg.com 2016-09-12 17:07:42 -07:00
Michael Jackson 855988865d Redirect home page traffic to unpkg.com 2016-09-12 14:07:46 -07:00
Michael Jackson ae1eb0d2f3 Merge pull request #10 from jgravois/patch-1
second blacklisted module
2016-09-01 15:04:36 -07:00
Michael Jackson dd92133b14 Update history URL 2016-08-30 20:38:26 -07:00
john gravois 06c1ce9729 add a second blacklisted module 2016-08-29 18:27:56 -07:00
Michael Jackson ea0fd214c2 s/npmcdn/unpkg/ 2016-08-29 17:43:24 -07:00
Michael Jackson e551d42a9b Merge pull request #9 from jgravois/patch-1
PackageBlacklist isnt .json file.
2016-08-29 17:39:03 -07:00
Michael Jackson 505cd9ab8a Add Cache-Control header to / 2016-08-29 17:33:23 -07:00
Michael Jackson 86c79d985e Update ?json query instructions 2016-08-29 17:24:15 -07:00
john gravois 1a1b1cd8a0 fix file extension in PackageBlacklist link 2016-08-29 17:01:34 -07:00
Michael Jackson 210799d353 Move blacklist link inside modules 2016-08-25 15:27:37 -06:00
Michael Jackson fdeb600f57 Home page tweak 2016-08-25 15:25:14 -06:00
Michael Jackson 97ce6bf647 Use an array for blacklist 2016-08-25 14:48:05 -06:00
Michael Jackson e8b0857f11 Use a blacklist for bad packages
This addresses the primary concern in https://github.com/jsdelivr/jsdelivr/issues/13136
2016-08-25 12:52:05 -06:00
Michael Jackson 80b068d5dc Avoid unknown prop warning on <input> 2016-08-09 09:38:04 -07:00
Michael Jackson f1a3ecf997 Fix number parsing for empty strings
Fixes #7
2016-08-09 09:37:50 -07:00
Michael Jackson 9d59d0d59a Revert "Fix NumberInput when displayValue is NaN" 2016-08-09 09:31:42 -07:00
radubrehar 0ebc2cacc7 Fix NumberInput when displayValue is NaN 2016-08-09 18:47:32 +03:00
Michael Jackson 0bef5156aa Serve browser bundles by default if present 2016-07-29 15:21:46 -07:00
Michael Jackson dde88c539b Syntax tweak 2016-07-29 15:15:41 -07:00
Michael Jackson 51ace69ccb Update web-starter 2016-07-20 12:55:38 -07:00
Michael Jackson 7734f13091 Update server config 2016-06-22 10:12:02 -07:00
Michael Jackson d2f5b9f7cb s/sponsor/about/g 2016-06-18 12:54:01 -07:00
Michael Jackson c20c390877 Update server timeout 2016-06-14 23:01:35 -07:00
Michael Jackson 930874c203 Add comment 2016-06-13 20:37:16 -07:00
Michael Jackson 60f880ae9d Fix server timeout 2016-06-13 18:56:18 -07:00
Michael Jackson b4ee49b9b3 Set server timeout to 20s 2016-06-13 00:10:07 -07:00
Michael Jackson 2b9ffd90f9 Update asset utils 2016-06-12 23:19:38 -07:00
Michael Jackson 0b2906979d Add clustering via $WEB_CONCURRENCY env var 2016-06-12 23:04:27 -07:00
Michael Jackson f4c1f7f338 Add ?json support 2016-05-24 18:07:46 -07:00
Michael Jackson b747130305 Better viewport settings on mobile 2016-05-20 13:11:53 -07:00
Michael Jackson fde5923a5a Push up sponsors 2016-05-20 12:20:23 -07:00
Michael Jackson e120aacbb1 Default chart to 5M 2016-05-20 12:04:48 -07:00
Michael Jackson 87524d4947 Bunch of website stuff 2016-05-20 11:58:58 -07:00
Michael Jackson 66ef9a780c Add dev runtime from web-starter 2016-05-16 15:55:24 -07:00
Michael Jackson 5f2615f2ed Do not use Babel's register hook in production 2016-05-16 15:12:49 -07:00
Michael Jackson 9e6e5148a4 Do not record request-paths for now 2016-05-10 11:19:11 -07:00
Michael Jackson 5b8c8e6742 Minify CSS 2016-05-03 13:05:14 -07:00
Michael Jackson ff43c2cc50 Add dynamic piece 2016-04-30 17:33:45 -07:00
Michael Jackson 9e0f43484f Dynamically render home page 2016-04-30 17:26:23 -07:00
Michael Jackson a14c6cd90b Use separate modules, get config from env 2016-04-30 16:52:43 -07:00