Commit Graph

18380 Commits

Author SHA1 Message Date
Ben Newman
b6e3a52b63 Bump package versions for 1.5-beta.5 release. release/METEOR@1.5-beta.5 2017-02-10 14:39:27 -05:00
Ben Newman
cda9ba1d41 Merge branch 'release-1.4.3' into release-1.5 2017-02-10 14:37:43 -05:00
Ben Newman
d9184808cb Avoid calling ImportScanner#_getRelativeImportId with bad parentPath.
Fixes #8336.
2017-02-10 14:33:20 -05:00
Ben Newman
db848e2dde Bump package versions for 1.4.3-rc.5 release. release/METEOR@1.4.3-rc.5 2017-02-10 13:37:51 -05:00
Ben Newman
eb0d0c6aff Remove -rc.n suffix from coffeescript version.
Now that coffeescript is in packages/non-core, we can publish it
separately from the Meteor release, so it doesn't need a prerelease
version suffix.
2017-02-10 13:28:16 -05:00
Ben Newman
4d1f21da65 Move coffeescript into packages/non-core.
See discussion on #8298, starting with this comment:
https://github.com/meteor/meteor/pull/8298#issuecomment-279012565
2017-02-10 13:26:30 -05:00
Ben Newman
ba12b85412 Move jquery-waypoints into packages/non-core.
I'm planning to move coffeescript into packages/non-core, and this is the
only core package that depends on coffeescript.
2017-02-10 13:25:36 -05:00
Christian Klaussner
452333aff3 Fix CoffeeScript source map composition 2017-02-10 13:22:59 -05:00
Ben Newman
2f3f90d7e6 Bump package versions for 1.4.3-rc.4 release. release/METEOR@1.4.3-rc.4 2017-02-10 12:05:17 -05:00
Ben Newman
ce547d69ef Add v1.4.3 header to History.md. 2017-02-10 11:44:33 -05:00
Hugh Willson
a0b323f3e3 Moved spiderable into non-core. 2017-02-10 11:40:29 -05:00
Ben Newman
d40c54a879 Merge pull request #8346 from meteor/abernix/polishing-accounts-7715
Touch-ups for Accounts Package Changes
2017-02-10 11:39:27 -05:00
Jesse Rosenberger
2a09a6740a Move deprecated account packages to deprecated instead of non-core.
Since they're deprecated and non-core.
2017-02-10 17:39:02 +02:00
Jesse Rosenberger
44954fee0c Use hasOwnProperty instead of checking against undefined primitive.
Gets rid of superflous parenthesis too.
2017-02-10 17:34:55 +02:00
Jesse Rosenberger
d0151c04f1 Improve the display of the deprecation warning for accounts packages 2017-02-10 17:34:55 +02:00
Jesse Rosenberger
786511dffc Move facebook out of deprecated for consistency, for now.
It will get moved back in an upcoming merge.
2017-02-10 17:34:55 +02:00
Jesse Rosenberger
2c5dda1675 Explicitly join the fields array to a comma-delimited string.
With https://github.com/meteor/meteor/pull/8261 merged, arrays are no longer concatenated (with commas) into a string during `HTTP.call` requests so we need to specify the exact behavior we want. Any previous behavior of this type was purely accidental.

The definition of this field in Facebook's API is that it should be a comma-separated field:

https://developers.facebook.com/docs/graph-api/using-graph-api
2017-02-10 17:34:54 +02:00
Jesse Rosenberger
8c7758015d Fix inaccurate comment
This should have been updated when 8de559a was changed.
2017-02-10 17:34:54 +02:00
Jesse Rosenberger
bf59881fc9 Cleanup the warning message which is displayed on server and client
This implements a more clean formatting for the message.
2017-02-10 17:34:28 +02:00
Jesse Rosenberger
f4d677fbc8 Add an upgrader which modifies accounts-* packages automatically.
The transformations to be made here are:
   * Existence of `accounts-<service>` **adds** `<service>-config-ui`
   * Existence of `<service>` **changes to** `<service>-oauth`
 https://github.com/meteor/meteor/issues/7715#issuecomment-276529351

 Relates to:

  * facebook: https://github.com/meteor/meteor/pull/7728
  * github: https://github.com/meteor/meteor/pull/8303
  * google: https://github.com/meteor/meteor/pull/8275
  * meetup: https://github.com/meteor/meteor/pull/8231
  * meteor-developer: https://github.com/meteor/meteor/pull/8305
  * twitter: https://github.com/meteor/meteor/pull/8283
  * weibo: https://github.com/meteor/meteor/pull/8302
2017-02-10 17:34:28 +02:00
Hugh Willson
e6d905ca54 Adjusted query string array representation to remove indices. (#8342)
* Adjusted query string array representation to remove indices.

* Increased major version since the new _encodeParams() result is not backwards compatiable.
2017-02-10 17:34:27 +02:00
Jesse Rosenberger
873f13d743 Upgrade Facebook Graph API to use v2.8
In testing for #7715, I discovered that the v2.2 Graph API endpoint was still in use in the `facebook` package which was due to sunset on 2017-03-25.

See Facebook Graph API Changelog here:
  https://developers.facebook.com/docs/apps/changelog

When a Graph API endpoint is sunset, it (is claimed) to automatically turn over to the next more recent version, in this case v2.3.

v2.3 has a breaking-change over v2.2, notably listed in "Changes from v2.2 to v2.3":

> [Oauth Access Token] Format - The response format of https://www.facebook.com/v2.3/oauth/access_token returned when you exchange a code for an access_token now return valid JSON instead of being URL encoded. The new format of this response is {"access_token": {TOKEN}, "token_type":{TYPE}, "expires_in":{TIME}}. We made this update to be compliant with section 5.1 of RFC 6749.

This change updates both Graph APIs to v2.8 which has LTS until "At least October 2018".
2017-02-10 17:34:27 +02:00
Ben Newman
12f35950c1 Improve formatting of accounts reorganization History.md entry
Also fixed the pull request number for the `meetup` package.
2017-02-09 18:33:02 -05:00
Ben Newman
81cc8aabcf Bump package versions for 1.4.3-rc.3 release. release/METEOR@1.4.3-rc.3 2017-02-09 16:40:35 -05:00
Ben Newman
844e2c34ad Consider npm packages with {,pre,post}install scripts non-portable.
Inspired by analysis from @danstiner:
https://github.com/meteor/meteor/issues/8225#issuecomment-275044900

Fixes #8225, as well as the tests I added in 672c4f338a.

I changed the name of the .meteor-portable file to .meteor-portable-1.json
in order to invalidate previous .meteor-portable files. This naming scheme
will be more sustainable, because we can keep incrementing the version
number whenever we change this logic.
2017-02-09 16:06:55 -05:00
Ben Newman
bcffe53d14 Consider npm packages with {,pre,post}install scripts non-portable.
Inspired by analysis from @danstiner:
https://github.com/meteor/meteor/issues/8225#issuecomment-275044900

Fixes #8225, as well as the tests I added in 672c4f338a.

I changed the name of the .meteor-portable file to .meteor-portable-1.json
in order to invalidate previous .meteor-portable files. This naming scheme
will be more sustainable, because we can keep incrementing the version
number whenever we change this logic.
2017-02-09 16:04:23 -05:00
Ben Newman
d0aa53cef9 Basic test harness for dynamic imports. 2017-02-09 13:25:59 -05:00
Ben Newman
4784b77c9e Make sure dynamic-import package has Promise polyfill.
I might not have noticed this, except that PhantomJS still does not
provide a native Promise constructor.
2017-02-09 13:25:58 -05:00
Ben Newman
672c4f338a Add the modules test app to the self-test suite.
I've been running these tests manually ever since Meteor 1.3, but they
really should run every time.
2017-02-09 12:09:48 -05:00
Ben Newman
fabad4cc8d Overwrite implicit modules only if they are package.json files.
Implicit empty stub CSS modules added in addStylesheet in
compiler-plugin.js were being overwritten with actual CSS module code,
thanks to logic intended to support replacing package.json stubs with
their actual contents.

The meaning of "implicit" is somewhat overloaded: for package.json
modules, it means the module is a minimal stub (just the "name",
"version", and "main"/"browser" fields) that should be replaced if ever
explicitly imported. For empty stub CSS modules, it means the module
should yield to any actual modules added via addJavaScript.
2017-02-09 12:09:34 -05:00
Ben Newman
cf71259080 Overwrite implicit modules only if they are package.json files.
Implicit empty stub CSS modules added in addStylesheet in
compiler-plugin.js were being overwritten with actual CSS module code,
thanks to logic intended to support replacing package.json stubs with
their actual contents.

The meaning of "implicit" is somewhat overloaded: for package.json
modules, it means the module is a minimal stub (just the "name",
"version", and "main"/"browser" fields) that should be replaced if ever
explicitly imported. For empty stub CSS modules, it means the module
should yield to any actual modules added via addJavaScript.
2017-02-09 12:02:34 -05:00
Ben Newman
1b7ceab6d5 Bump package versions for 1.5-beta.4 release. release/METEOR@1.5-beta.4 2017-02-09 10:24:49 -05:00
Ben Newman
696b8d4b3c Fix Buffer conversion logic in writeFile. 2017-02-09 10:21:21 -05:00
Ben Newman
f5ae115c10 Don't forget to write dynamic files without source maps. 2017-02-09 10:19:49 -05:00
Ben Newman
51c9f5e16c Use Meteor._localStorage only in production mode.
https://github.com/meteor/meteor/pull/8327#issuecomment-278660587
2017-02-09 10:19:24 -05:00
Ben Newman
1bbe7b6770 Bump package versions for 1.5-beta.3 release.
https://github.com/meteor/meteor/releases/tag/release%2FMETEOR%401.5-beta.3
2017-02-08 23:15:26 -05:00
Ben Newman
e469eeec05 Fix tests by adding //# sourceMappingURL= only to dynamic files.
Also, the regular expression for removing existing source map comments now
matches only if the comment starts at the beginning of a line, following
previous behavior more closely.

To get this exactly right, we would need to tokenize the source to avoid
matching comments in string literals, for example, but that's hard because
this logic needs to work for multiple file types, not just JavaScript.
2017-02-08 19:40:38 -05:00
Ben Newman
cf3744f624 Copy "main" and "browser" from non-dynamic package.json files.
Fixes the first problem reported by @klaussner in this comment:
https://github.com/meteor/meteor/pull/8327#issuecomment-278491257
2017-02-08 18:36:27 -05:00
Ben Newman
9b016bd28d Rename modules to real in modules-runtime/meteor-install.js.
I think `real` is a better antonym for `meta`, and I appreciate that
`real` and `meta` are both four letters long.
2017-02-08 18:36:26 -05:00
Ben Newman
365ceb6386 Tolerate ENOENT exceptions from files.realpath in isWithinProdPackage. 2017-02-08 17:18:30 -05:00
Ben Newman
e2cf76f8da Move deprecated packages from packages/non-core to packages/deprecated.
These subdirectories are functionally equivalent, but obviously the
packages/deprecated directory is a better home for deprecated packages.
2017-02-08 16:20:23 -05:00
Ben Newman
fa23107642 Merge branch 'release-1.4.3' into release-1.5 2017-02-08 16:10:52 -05:00
Ben Newman
19a2606539 Merge branch 'devel' into release-1.4.3 2017-02-08 16:02:53 -05:00
Ben Newman
6a4d76ef8e Remove -beta.n suffix from less before republishing. 2017-02-08 15:55:28 -05:00
Ben Newman
6b6e5d8017 Remove -beta.n suffix from minifier-css before republishing. 2017-02-08 15:46:27 -05:00
Ben Newman
7e13201f12 Remove -beta.n suffix from minifier-js before republishing. 2017-02-08 15:45:56 -05:00
Ben Newman
3163085e1f Remove -beta.n suffix from standard-minifier-js before republishing. 2017-02-08 15:41:57 -05:00
Ben Newman
af100fdb60 Remove -beta.n suffix from standard-minifier-css before republishing. 2017-02-08 15:41:04 -05:00
Ben Newman
3868e83dee Remove -beta.n suffix from stylus package before republishing. 2017-02-08 15:38:28 -05:00
Ben Newman
3761fd4bf1 Bump package versions for 1.4.3-rc.2 release. release/METEOR@1.4.3-rc.2 2017-02-08 15:10:39 -05:00