Commit Graph

10371 Commits

Author SHA1 Message Date
filipenevola
5404d065e9 Bump package versions for 1.10-rc.3 release 2020-03-02 15:39:38 -04:00
filipenevola
8b642e2ee6 Pins cordova-plugin-inappbrowser to 3.2.0 2020-03-02 15:38:19 -04:00
filipenevola
e898ab9b98 Bump package versions for 1.10-rc.2 release 2020-02-28 16:13:02 -04:00
Ben Newman
65f3644a96 Stop using our fork of cordova-plugin-googleplus.
The PR that we were waiting on got merged in April 2018:
https://github.com/EddyVerbruggen/cordova-plugin-googleplus/pull/366
2020-02-28 14:03:40 -05:00
Ben Newman
5a182b515e Bump package versions for 1.10-rc.1 release. 2020-02-27 16:47:11 -05:00
Ben Newman
f20fe92b57 Configure autoReconnect and reconnectTries if useUnifiedTopology false.
Following this guidance from @klaussner:
https://github.com/meteor/meteor/pull/10861#commitcomment-37525845

Part of #10925.
2020-02-27 14:36:57 -05:00
Ben Newman
a5700c22d2 Require opting in to mongoOptions.useUnifiedTopology.
Since 0ca83e8fc7 didn't work, this is
another attempt to fix #10925. Note that the comment about deprecation
warnings was actually referring to a different option, useNewUrlParser,
which we no longer use: 282b16ed16

https://github.com/meteor/meteor/issues/10925#issuecomment-591655365
2020-02-27 14:12:17 -05:00
Ben Newman
edc7180382 Bump package versions for 1.10-rc.0 release. 🎉 2020-02-26 15:52:12 -05:00
Ben Newman
0ca83e8fc7 Update mongodb driver package to version 3.5.4.
With any luck, this update should fix #10925, thanks to
https://jira.mongodb.org/browse/NODE-2467.
2020-02-26 15:39:31 -05:00
Ben Newman
93e9f96124 Two stray -beta110.11 version updates.
These versions were included in the 1.10-beta.11 release, but accidentally
not committed with the other version bumps.
2020-02-26 15:38:16 -05:00
Ben Newman
3317837489 Bump package versions for 1.10-beta.11 release. 2020-02-26 12:22:35 -05:00
Ben Newman
a467255d9c Use IPC message to handle .reload command in meteor shell.
I considered using a nonzero process.exit code, but I didn't want to run
any risk of reusing a meaningful code, and the accepted range of codes
unfortunately does not include parseInt("reload", 36), or 1657112629.

Should fix #10934.
2020-02-26 12:13:48 -05:00
Ben Newman
6232550cb8 Gracefully handle EPIPE errors for nonessential IPC messages.
These stray EPIPE messages have been a problem for a while now, especially
on Windows.

In most cases, they appear to stem from sending a message to a process
that is about to exit, such that the message races against the exit, and
sometimes loses. When that message is a just an obligatory response to a
final message from the exiting process, the exiting process probably does
not care about (and will not receive) the response, so we can safely
swallow the EPIPE error.

Now that all otherProcess.send calls have a callback function, I'm hopeful
we will never see EPIPE errors again.
2020-02-26 12:11:33 -05:00
Ben Newman
42e92391f1 Bump package versions for 1.10-beta.10 release. 2020-02-25 19:46:49 -05:00
Ben Newman
70d25386af Merge branch 'devel' into release-1.10 2020-02-25 19:40:53 -05:00
Joakim Ramer
573c9dc478 Allow oauth server package to parse post body data (#10751) 2020-02-25 19:39:45 -05:00
Seba Kerckhof
163881163f Don't lose the query string when using a path prefix (#10845)
Fixes https://github.com/meteor/meteor/issues/10756
2020-02-25 19:31:42 -05:00
Ben Newman
8939f93d86 Merge branch 'devel' into release-1.10 2020-02-25 18:53:50 -05:00
Brian Mulhall
a228aa746a moving the xmlbuilder isopack to the non-core folder since it is no longer being used 2020-02-25 15:47:24 -05:00
Brian Mulhall
c68757a52c remove the xmlbuilder isopack and all references to it in the code 2020-02-25 15:44:44 -05:00
Brian Mulhall
6285604530 Updated the npm-shrinkwrap.json
these dependencies are needed after all
2020-02-25 15:44:43 -05:00
Brian Mulhall
69f359e592 bug fix - spelling errors in the test file 2020-02-25 15:44:43 -05:00
Brian Mulhall
6ed31add94 removed xmlbuilder's dependencies from the npm-shrinkwrap.json file 2020-02-25 15:44:43 -05:00
Brian Mulhall
e376f83b35 updated the tests to help identify which function (each used function has a separate test case now) has failed in the event that a library update causes the api's behavior to change version to version from what we have come to expect 2020-02-25 15:44:43 -05:00
Brian Mulhall
0d86f3dacd removed the old node packages from the npm-shrinkwrap file because they are not needed anymore 2020-02-25 15:44:43 -05:00
Brian Mulhall
6ab985f142 cleaned up the test case data to only include what is used 2020-02-25 15:44:43 -05:00
Brian Mulhall
928fcdafd1 update the shrinkwrap file's with the new node packages that come with xmlbuilder2, and remove the xmlbuilder packages 2020-02-25 15:44:43 -05:00
Brian Mulhall
2ce2f68426 update the xmlbuilder isopack's package.js file 2020-02-25 15:44:43 -05:00
Brian Mulhall
e4b4b37d2a updated the npm dependency to xmlbuilder2 2020-02-25 15:44:43 -05:00
Brian Mulhall
feaab51e3d added in a test file and a test case to exercise all the functions from xmlbuilder2 the /meteor/tools/cordova/builder.js file uses 2020-02-25 15:44:43 -05:00
filipenevola
d208ca7fcf Bump package versions for 1.10-beta.9 release 2020-02-25 16:32:29 -04:00
Filipe Névola
79dccfe49f Merge pull request #10818 from wildhart/fix-issue-10469
Limit fetching full user objects (performance) Fixes #10469
2020-02-25 16:26:04 -04:00
Filipe Névola
979b31b87c Merge branch 'release-1.10' into fix-issue-10469 2020-02-25 15:40:39 -04:00
Filipe Névola
3516bc8193 Merge branch 'release-1.10' into refactor/modernize-random 2020-02-25 15:37:17 -04:00
filipenevola
0806489de6 Bump package versions for 1.10-beta.8 release 2020-02-25 12:19:23 -04:00
Seba Kerckhof
6368359927 Bump version 2020-02-25 10:39:44 +01:00
sebakerckhof
f0930360ef Refactor types into strategy-pattern (ish) subclasses. 2020-02-25 10:39:44 +01:00
sebakerckhof
c4504ba1f3 Some style improvements 2020-02-25 10:39:44 +01:00
sebakerckhof
3a3774f47f Modernize random 2020-02-25 10:39:44 +01:00
Filipe Névola
b582d7de58 Merge branch 'release-1.10' into mongo-performance-improvements 2020-02-24 22:45:51 -04:00
wildhart
10b3bd3fce Merge remote-tracking branch 'upstream/devel' into fix-issue-10469 2020-02-24 09:01:26 +13:00
Ben Newman
67671dc9b3 Bump package versions for 1.10-beta.7 release. 2020-02-20 11:45:58 -05:00
Ben Newman
de5db52f87 Merge branch 'devel' into release-1.10 2020-02-20 11:42:09 -05:00
Ben Newman
150d387b44 Merge branch 'master' into devel 2020-02-20 11:24:20 -05:00
filipenevola
05e7b81c2a Bump package versions for 1.9.2 release 2020-02-20 10:36:07 -04:00
Ben Newman
60355ae0e3 Bump package versions for 1.9.2-rc.1 release. 2020-02-19 18:21:35 -05:00
Ben Newman
c81738fbb3 Update meteor-babel to version 7.8.2 and typescript to 3.7.5. 2020-02-19 15:20:20 -05:00
filipenevola
dad91bd581 Bump package versions for 1.9.2-rc.0 release 2020-02-19 16:15:37 -04:00
Ben Newman
924c748ecc Avoid bailing out with module.useNode() for ESM modules.
On the server, Meteor attempts to avoid bundling node_modules code by
replacing entry point modules with a stub that calls module.useNode() (see
packages/modules-runtime/server.js). This trick allows evaluating server
node_modules natively in Node.js, faithfully preserving all Node-specific
behaviors, such as module.id being an absolute file system path, the
__dirname and __filename variables, the ability to import binary .node
modules, and so on.

However, starting in Node.js 12.16.0 (Meteor 1.9.1+), modules evaluated
natively by Node are considered ECMAScript modules (ESM) if the closest
package.json file has "type": "module" (or has an .mjs file extension).
This poses a problem for the module.useNode() trick, because ESM modules
cannot be imported synchronously using require (which is currently how
module.useNode() works).

To work around this new error, this commit checks package.json for "type":
"module" in ImportScanner#shouldUseNode to determine whether it's safe to
use the module.useNode() trick.

The good news is that ESM modules don't have access to nearly as many
Node.js-specific quirks: no module, require, or exports variables; no
__dirname, no __filename; no ability to import JSON or other non-ESM file
types (at least right now). So it seems somewhat less important for ESM
code (compared to CommonJS code) to bail out into native Node.js execution
using module.useNode(). In other words, bundling server code should not
affect its execution in nearly as many cases, if that code is ESM rather
than legacy CommonJS.

If this good news turns out to be overly optimistic, we can consider using
a different kind of bailout stub that's capable of importing ESM using
dynamic import(). For now, making sure we avoid bailing out for ESM code
like @babel/runtime/helpers/esm/* is the priority.
2020-02-19 15:24:42 -04:00
Ben Newman
87bc54fb9f Avoid bailing out with module.useNode() for ESM modules.
On the server, Meteor attempts to avoid bundling node_modules code by
replacing entry point modules with a stub that calls module.useNode() (see
packages/modules-runtime/server.js). This trick allows evaluating server
node_modules natively in Node.js, faithfully preserving all Node-specific
behaviors, such as module.id being an absolute file system path, the
__dirname and __filename variables, the ability to import binary .node
modules, and so on.

However, starting in Node.js 12.16.0 (Meteor 1.9.1+), modules evaluated
natively by Node are considered ECMAScript modules (ESM) if the closest
package.json file has "type": "module" (or has an .mjs file extension).
This poses a problem for the module.useNode() trick, because ESM modules
cannot be imported synchronously using require (which is currently how
module.useNode() works).

To work around this new error, this commit checks package.json for "type":
"module" in ImportScanner#shouldUseNode to determine whether it's safe to
use the module.useNode() trick.

The good news is that ESM modules don't have access to nearly as many
Node.js-specific quirks: no module, require, or exports variables; no
__dirname, no __filename; no ability to import JSON or other non-ESM file
types (at least right now). So it seems somewhat less important for ESM
code (compared to CommonJS code) to bail out into native Node.js execution
using module.useNode(). In other words, bundling server code should not
affect its execution in nearly as many cases, if that code is ESM rather
than legacy CommonJS.

If this good news turns out to be overly optimistic, we can consider using
a different kind of bailout stub that's capable of importing ESM using
dynamic import(). For now, making sure we avoid bailing out for ESM code
like @babel/runtime/helpers/esm/* is the priority.
2020-02-19 13:25:22 -05:00