Commit Graph

9564 Commits

Author SHA1 Message Date
Ben Newman
0efe66e6a1 Bump package versions for 1.7-beta.28 release. 2018-05-01 17:08:06 -04:00
Ben Newman
182c426c6d Set Vary:User-Agent response header for static files.
The only new functionality is the res.setHeader("Vary", "User-Agent")
call; the rest of the changes in this commit are just reformatting.

@CaptainN I think this should be enough information for well-behaved
browsers and CDNs to do the right thing, though I agree it's worth
documenting.
2018-04-30 19:47:12 -04:00
Ben Newman
0765927393 Let bundle-visualizer tolerate WebAppInternals.staticFilesByArch. 2018-04-29 10:20:12 -04:00
Ben Newman
223ec46525 Use isModern(request.browser) to determine architecture of static files.
Note that WebAppInternals.staticFiles has been replaced by
WebAppInternals.staticFilesByArch.
2018-04-29 09:58:08 -04:00
Ben Newman
f9e95b3bbb Merge branch 'devel' into release-1.7 2018-04-29 09:22:01 -04:00
Ben Newman
715b96bed8 Use ecmascript in test-helpers and downgrade to latest published jquery.
Though this commit comes after the 1.1.0 version bump, these changes
should be published when that version is published (with Meteor 1.7).
2018-04-29 09:06:17 -04:00
Ben Newman
9cc9214490 Bump test-helpers package version to 1.1.0. 2018-04-29 02:16:17 -04:00
Ben Newman
029611ec6d Improve "oplog - entry skipping" test to prevent intermittent failures. 2018-04-28 23:51:01 -04:00
Ben Newman
bdc98281b1 Bump test-helpers package version to 1.0.13. 2018-04-28 23:50:53 -04:00
Ben Newman
d3df76b2b5 Allow testAsyncMulti functions to return promises. 2018-04-28 23:49:20 -04:00
Ben Newman
8e6f673fd0 Bump package versions for 1.7-beta.27 release. 2018-04-28 12:09:02 -04:00
Ben Newman
72edda6b37 Cache previously computed app.manifest files.
This is an easy optimization that we should have done a long time ago.
2018-04-28 11:58:57 -04:00
Ben Newman
7e883b337f Register app.manifest FALLBACK for non-prefixed asset URLs.
This is an alternate solution to the problems #9776 was intended to fix.
2018-04-28 11:26:10 -04:00
Ben Newman
21ffb90154 Pass arch and prefix to eachResource callback in appcache-server.js. 2018-04-28 11:21:34 -04:00
Ben Newman
a2b770e8db Merge branch 'devel' into release-1.7 2018-04-28 10:11:18 -04:00
Ben Newman
61506c64e2 Reinstate Deps as an alias for Tracker to fix #9830. 2018-04-28 10:10:47 -04:00
Ben Newman
11078e46b2 Bump package versions for 1.7-beta.26 release. 2018-04-27 13:43:14 -04:00
Ben Newman
cd165c50e6 Bump appcache package version to 1.2.0. 2018-04-27 13:25:18 -04:00
Ben Newman
a599aa738d Avoid using WebApp.connectHandlers for appcache sizeCheck.
The (req, res, next) handler was not calling next(), which caused some
tests where appcache was used (e.g. hot code push) to time out.
2018-04-27 13:25:15 -04:00
Ben Newman
cf33eeedbc Decompose eachResource helper function in appcache-server.js. 2018-04-27 13:07:37 -04:00
Ben Newman
b50a52ecf5 Tolerate assets added with same path to both modern and legacy architectures.
Since legacy assets are no longer disambiguated from modern assets with a
/__browser.legacy/ URL prefix (#9776), we need a principled way to handle
collisions in the staticFiles registry.
2018-04-27 12:41:36 -04:00
Kevin Newman
06f9f78277 Avoid the need to rewrite URLs in appcache, by avoiding adding the prefix at build time for assets 2018-04-27 09:47:21 -04:00
Kevin Newman
154533af26 Rewrite /public urls to remove /__browser.legacy/ prefix in app.manifest (also skip stats.json) 2018-04-27 09:47:21 -04:00
Kevin Newman
7f2a683e2c Always omit .map files from app.manifest 2018-04-27 09:47:21 -04:00
Kevin Newman
04a0a2a97f Use isModern checks to decide which arch assets to put in the app.manifest, and add filter for web.browser.legacy in isDynamic check 2018-04-27 09:47:21 -04:00
Carl Littke
b6a385dfb2 Stop logging value of METEOR_SETTINGS when it is not valid JSON. (#9843)
In many production systems logs from the application will be forwarded to various logging systems, sometimes third party ones. All credentials in your settings will be leaked if you have any errors in your json.

Feature request can be found here
https://github.com/meteor/meteor-feature-requests/issues/293.
2018-04-27 15:10:40 +03:00
Ben Newman
dcd01aceba Merge branch 'devel' into release-1.7 2018-04-25 18:22:00 -04:00
Ben Newman
986b47d1c4 Update meteor-babel to version 7.0.0-beta.46. (#9840) 2018-04-25 18:15:29 -04:00
Ben Newman
cf273f0911 Bump package versions for 1.7-beta.25 release. 2018-04-25 12:43:35 -04:00
Ben Newman
3502761c4d Exclude IE11 and all earlier versions from modern classification.
Builds on #9793.
Fixes #9818.
Fixes #9839.
2018-04-25 12:35:45 -04:00
Ben Newman
5824129a34 Bump package versions for 1.7-beta.24 release. 2018-04-24 12:40:07 -04:00
Christian Klaussner
1555e3e1e3 Update MongoDB driver to 3.0.7 (#9831)
The internal `client.s` property is no longer necessary to create the database object. If `MongoClient.prototype.db` is called without arguments, it will use the database name from the connection URI
(https://jira.mongodb.org/projects/NODE/issues/NODE-1258).
2018-04-20 13:26:24 -04:00
Ben Newman
a3a19f94eb Bump package versions for 1.7-beta.23 release. 2018-04-19 10:53:15 -04:00
Ben Newman
567e620a86 Prefer client.s.databaseName over client.s.options.dbName.
Fixes #9827.

The client.s.databaseName property appears to have been introduced a long
time ago (in 2014), so it seems reliable:
14fd60b99d

The use of client.s.options.dbName was only recently introduced in #9790,
since the MongoDB.connect callback now receives a MongoClient object
rather than a Db object. Not sure if client.s.options.dbName was ever
reliable, but at least we know when the problem started.
2018-04-19 10:12:23 -04:00
Ben Newman
5189713d01 Bump package versions for 1.7-beta.22 release. 2018-04-18 19:42:50 -04:00
Ben Newman
e09be77e39 Bump package versions for 1.6.2-beta.21 release.
I made a mistake while publishing 1.6.2-beta.16 that means it's easier to
just skip that version.
2018-04-18 16:34:14 -04:00
Ben Newman
6ed37da36d Bump mongo package minor version to 1.5.0. 2018-04-18 13:27:50 -04:00
David Glasser
afb7d23d04 mongo: restart underlying oplog tail every 30 seconds without a doc
Workaround for #8598: the Node Mongo driver has at least one bug that can lead
to query callbacks never getting called (even with an error) when leadership
failover occur.

Note that while we did fix one Node Mongo driver bug and close #8598, we've
heard reports that there are more similar issues, so this workaround seems like
a good plan.
2018-04-18 13:22:51 -04:00
Ben Newman
5013d869c9 Merge branch 'devel' into release-1.6.2 2018-04-18 13:18:43 -04:00
Ben Newman
a64572cbe7 Bump http package version to 1.4.1. 2018-04-18 13:09:52 -04:00
Ben Newman
9f500c5821 Bump facebook-oauth package version to 1.4.1. 2018-04-18 13:08:00 -04:00
Jan Dvorak
d10d843e95 Update Facebook API to v2.12 (#9815) 2018-04-18 11:49:41 -04:00
pravdomil
af72bcf30d finetune error messages 2018-04-11 12:24:23 +02:00
Ben Newman
af7f3d7ede Bump package versions for 1.6.2-beta.20 release.
I made a mistake while publishing 1.6.2-beta.16 that means it's easier to
just skip that version.
2018-04-06 11:10:18 -04:00
Christian Klaussner
c0bce716fc Update MongoDB driver to 3.0.5 (#9790)
* Update MongoDB driver to 3.0.5

* Use `MongoClient` instead of `Db` in Meteor Tool

* Update `mongo-livedata` test for new MongoDB driver version

* Consider `BulkWriteError` when checking MongoDB errors
2018-04-06 10:28:25 -04:00
Ben Newman
e6ba875bcc Bump package versions for 1.6.2-beta.19 release.
I made a mistake while publishing 1.6.2-beta.16 that means it's easier to
just skip that version.
2018-04-05 20:29:27 -04:00
Ben Newman
5fbb99ce5b Merge branch 'devel' into release-1.6.2 2018-04-05 20:29:02 -04:00
Ben Newman
b534f92c80 Relax jquery constraints in test-{in-browser,helpers} packages.
Since jquery used to be a core package, and the most recent Meteor release
(1.6.1.1) imposed the ~1.11.11 constraint (note the ~), jquery@1.12.1
won't be usable with Meteor 1.6.x until it is republished after the next
Meteor release, which will no longer constrain the jquery version, because
jquery is no longer a core package (#9607).

In order to publish these two packages sooner rather than later, we need
to relax their jquery version constraints, because we don't want to
publish jquery@1.12.1 yet. The relaxed @1.11.11 constraints in these
package.js files will remain compatible with jquery@1.12.1, so this change
should be safe for the forseeable future.
2018-04-05 20:11:47 -04:00
Ben Newman
e197f5de3f Decompose applyAliases helper from setMinimumBrowserVersions.
Follow-up to #9793.
2018-04-04 12:11:21 -04:00
Jesse Rosenberger
4ab6c11f08 Bump mongo version to 1.4.7 prior to publishing.
This reverts the changes for meteor/meteor#9739 which were temporarily in
place for testing.

Reverts: 41520db1a0.
Ref: 76ac0ca6ee.
2018-04-04 19:10:17 +03:00