Commit Graph
100 Commits
Author SHA1 Message Date
Michael Jackson dfe2f29fe0 More granular control over query handling 2019-08-08 10:00:34 -07:00
Michael Jackson a718d90549 Fix /browse query redirects 2019-08-08 09:46:12 -07:00
Michael Jackson 8aa619727e Use GOOGLE_CLOUD_PROJECT instead of GAE_APPLICATION 2019-08-05 09:47:45 -07:00
Michael Jackson 370a7f7d6c Add request logging to asyncHandler 2019-08-04 23:49:34 -07:00
Michael Jackson 4774e61d50 Add request logging 2019-08-04 23:43:21 -07:00
Michael Jackson 7af4d4dc58 Get DEBUG from environment 2019-08-04 23:43:21 -07:00
Michael Jackson 1c850c8662 Use GAE trace agent 2019-08-04 23:43:21 -07:00
Michael Jackson 3289881a21 Increase max_instances 2019-08-04 23:24:19 -07:00
Michael Jackson 62cc639cfd More app engine tweaks 2019-08-03 18:11:48 -07:00
Michael Jackson be843179d4 Consolidate gunzip logic 2019-08-02 16:06:13 -07:00
Michael Jackson 746a6fddf5 Add previews for .txt files 2019-08-02 15:37:08 -07:00
Michael Jackson f1e253d732 Add back max_instances 2019-08-02 07:38:34 -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 f362fa9717 Use regular F4 instances 2019-08-01 14:20:38 -07:00
Michael Jackson 90e78cc344 Use 10s timeout on Jest tests 2019-08-01 10:21:57 -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 e757febc33 Add tests for /browse redirects 2019-08-01 09:55:05 -07:00
Michael Jackson 51c351d834 Back to auto scaling 2019-07-31 12:42:19 -07:00
Michael Jackson 407f6d796d Try manual scaling 2019-07-31 12:14:40 -07:00
Michael Jackson 002ef841ec Tweak target_cpu_utilization 2019-07-31 10:58:06 -07:00
Michael Jackson 541c9a14aa Try F4_HIGHMEM instances 2019-07-31 10:39:41 -07:00
Michael Jackson 2b22ff0be8 Bump max_concurrent_requests 2019-07-31 09:18:08 -07:00
Michael Jackson 9b9d3364b5 Use max_idle_instances to keep idle instances down to a reasonable number 2019-07-31 08:58:08 -07:00
Michael Jackson d4b7dead3f Experimenting with max_concurrent_requests 2019-07-31 08:38:48 -07:00
Michael Jackson cd091ad99d Cap max_instances at 12 again 2019-07-30 22:11:45 -07:00
Michael Jackson a51a275e84 Fix small bug 2019-07-30 18:15:53 -07:00
Michael Jackson ca3def5372 Disable stats loading on the client 2019-07-30 18:15:53 -07:00
Michael Jackson 957aec9a22 Remove max_instances 2019-07-30 17:56:59 -07:00
Michael Jackson 7f90203a66 Better async error handling 2019-07-30 17:06:27 -07:00
Michael Jackson 7582c641fb Add tests for undefined query params
Fixes #169
2019-07-30 15:51:50 -07:00
Michael Jackson 699b849914 Keep NODE_ENV in app.yaml 2019-07-30 15:30:47 -07:00
Michael Jackson 8bdc3dc73b Remove unneeded external 2019-07-30 14:56:35 -07:00
Michael Jackson 92179a14a5 Fix typo
Closes #209
2019-07-29 23:11:40 -07:00
Michael Jackson 3fdd18094d Tweak GAE config 2019-07-29 22:41:03 -07:00
Michael Jackson 1e83e6f52e Small improvements for small screens 2019-07-28 18:04:11 -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 b2d8e28344 Remove requireAuth middleware 2019-07-10 17:13:24 -07:00
Michael Jackson 64e2abc361 Style tweaks 2019-07-10 16:48:30 -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 56110b0314 Remove whitelist.json 2019-07-10 08:11:37 -07:00
Michael Jackson ccd8ccf6a4 Remove unneeded dep 2019-07-10 08:11:21 -07:00
Michael Jackson 95d32536f7 Add test for regular file request 2019-07-10 08:06:00 -07:00
Michael Jackson 3d6a61ad59 Add tests to CI 2019-07-10 08:02:31 -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 49c55af59d Update scripts 2019-07-09 16:38:32 -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 ebe19dd57d Warn about unresolved imports 2019-07-09 11:06:49 -07:00
Michael Jackson 390498fefd Remove auth 2019-07-09 11:06:49 -07:00
Michael Jackson db01dc234b Update name 2019-07-08 22:19:41 -07:00
Michael Jackson 476863c0ab Rename BACKERS.md => SPONSORS.md 2019-07-03 17:34:51 -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
Michael Jackson 404f62aa0d Update README 2019-07-02 19:45:38 -07:00
Michael Jackson c2dc7ae346 Update badge URLs 2019-07-02 19:42:45 -07:00
Michael Jackson ada19ecef1 Add backers doc 2019-07-02 16:29:55 -07:00
Michael Jackson 9e859f9c69 Add LICENSE
unpkg is an open source project licensed under the GNU Affero
General Public License.

Fixes #21
2019-07-02 11:26:49 -07:00
Michael Jackson 7e1951aa07 Increase max instances 2019-06-26 20:53:06 -07:00
Michael Jackson 312f5e0cfc Use .nvmrc for node version on Travis 2019-06-10 21:13:57 -07:00
Michael Jackson 7c168506b8 Update yarn.lock 2019-06-10 21:11:18 -07:00
Michael Jackson b91d0f247e Update nvmrc 2019-06-10 21:08:32 -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 f88edc7c6b Remove design files 2019-06-10 21:02:29 -07:00
Michael Jackson 043cb8ec14 Remove functions Rollup config 2019-06-10 21:02:29 -07:00
Michael Jackson 397a9f8915 Inline query sanitizer 2019-06-10 21:02:29 -07:00
Michael Jackson e8ea13c809 Use yarn instead of npm for deps 2019-06-10 21:02:29 -07:00
Michael Jackson 4c5e20841f Prettify 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 bc69d086f7 Merge branch 'wmhilton-contrib-percent-40' 2019-04-08 17:39:04 -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
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
Michael Jackson 90fecd39c2 Purge version-less URLs when "latest" tag is used 2019-02-21 10:54:11 -08:00
Michael Jackson 2d45078761 Remove some static files 2019-02-07 14:40:07 -08:00
Michael Jackson 275d33262a Small tweak 2019-02-02 11:23:16 -08:00
Michael Jackson 8f11d84428 Update scripts 2019-02-01 17:54:21 -08:00
Michael Jackson 3424643488 Tweak production scaling params 2019-01-30 08:08:57 -07:00
Michael Jackson d560b6281f Use CORS in front of static server 2019-01-30 08:05:19 -07:00
Michael Jackson 42abd00e2f Deploy production to App Engine standard 2019-01-29 15:23:22 -08:00
Michael Jackson 154b732540 Deploy staging on App Engine standard 2019-01-29 14:57:39 -08:00
Michael Jackson 0866376af6 Merge branch 'master' into staging 2019-01-28 12:23:01 -08:00
Michael Jackson 20c4926e13 Lengthen cache ttl on 404s 2019-01-28 12:15:05 -08:00
Michael Jackson 8479400c23 Increase memory allocation to 1g 2019-01-28 12:09:25 -08:00
Michael Jackson 9955949179 Add liveness health check 2019-01-28 11:11:43 -08:00
Michael Jackson 42f8c62d11 Temporarily disable health checks 2019-01-28 10:52:29 -08:00
Michael Jackson e1c338271b Remove old deploy code 2019-01-26 23:22:11 -08:00
Michael Jackson 8cab65a4f6 Scale automatically in production 2019-01-26 22:49:01 -08:00
Michael Jackson 21ce9c50cf Trust the X-Forwarded-For header 2019-01-26 22:08:42 -08:00
Michael Jackson 4136c9360c Use node 10 2019-01-26 21:47:31 -08:00
Michael Jackson d4e39ddc1b Update secrets 2019-01-26 21:41:37 -08:00