Commit Graph

8694 Commits

Author SHA1 Message Date
Ben Newman
1a946774bb Bump package versions for 1.6-beta.8 release.
The 1.6-beta.7 release had a version conflict because of the webapp@1.3.17
constraint in server-render/package.js. I noticed the problem before
publishing the release, so we will just skip to 1.6-beta.8.
2017-07-13 19:44:41 -04:00
Ben Newman
d5db2d0ad1 Remove constraint on webapp from server-render/package.js. 2017-07-13 19:44:39 -04:00
Ben Newman
9d9489c23e Upgrade meteor-babel and reify packages to latest versions. 2017-07-13 13:46:58 -04:00
Ben Newman
4c31235412 Upgrade meteor-promise and promise packages to latest versions. 2017-07-13 13:46:58 -04:00
Ben Newman
8d83d72dc4 Merge branch 'devel' into release-1.6 2017-07-13 11:19:32 -04:00
Ben Newman
18e4c172f2 Bump ecmascript version to 0.8.2 to help with #8611.
When the babel-compiler package is updated, it appears that sometimes the
ecmascript package must also be updated, since it registers the compiler
plugin that uses babel-compiler.

After verifying that you're using both babel-compiler@6.19.4 and
ecmascript@0.8.2, you should probably run `meteor reset` just to be sure
you aren't still using any cached source maps.
2017-07-13 10:58:16 -04:00
Ben Newman
30605b55df Bump localstorage package version to 1.1.1. 2017-07-13 09:28:59 -04:00
Ben Newman
c360e51fe0 Make it easier to add Meteor._localStorage wrapper methods. 2017-07-13 09:25:15 -04:00
Daniel C
a03ccfc100 Adjusted proxy methods explanation comment 2017-07-13 09:17:23 -04:00
Daniel C
d2aa127180 localStorage: bring back proxy methods to to window.localStorage. (Fix IE11 issue)
IE11 doesn't handle properly attempts to change methods of the
window.localStorage, attempts to do so will result in the complete break of the
localStorage system for the domain in which it is done - until the user clean
the browser/domain cache.

Therefore, in the web, we don't set Meteor._localStorage to be a reference to
window.localStorage . Instead, we set proxy methods.

This will allow package developers that will find a need to change the behavior
of Meteor._localStorage methods to do so without breaking the localStorage
system on IE11. (e.g. meteorhacks:fast-render)

IE11 (earlier IE versions weren't checked) doesn't handle attempts to replace
methods of window.localStorage with different functions properly.  Such attempt
will result in the String of the function we try to set saved as the function,
destroying the ability to use this function.

I couldn't find a way to tell in advance whether an attempt to set
window.localStorage will result in correct function write or not (I
intentionally avoid browser version detection, which is considered a bad
practice). If such attempt will fail we won't have a way to restore the
original function.

The situation is even worse than that. If for exapmle we'll try to set
window.localStorage.setItem = function () {} the String value 'function () {}'
will be saved instead of the function - not only for the current session, but
as part of the localStorage (!) meaning that we'll have to ask users affected
by this bug to clear the cache to fix the situation.

The following won't work:

```javascript
Meteor._localStorage = window.localStorage // Just to make example clear.
originalSetItem = Meteor._localStorage.setItem
Meteor._localStorage.setItem = function () {}
Meteor._localStorage.setItem = originalSetItem

typeof Meteor._localStorage.setItem -> string
```
2017-07-13 09:17:22 -04:00
Ben Newman
f2c102df69 Merge branch 'devel' into release-1.6 2017-07-12 19:06:51 -04:00
Ben Newman
21d2dab151 Merge branch 'master' into devel 2017-07-12 18:43:27 -04:00
Ben Newman
50a630318e Bump package versions for the official 1.5.1 release. 2017-07-12 16:07:33 -04:00
Ben Newman
90c982baa6 Add the webapp@1.3.17 constraint back to server-render.
Previously: 3a1f446105
2017-07-12 16:04:57 -04:00
Ben Newman
3b171b1cf8 Merge branch 'master' into release-1.5.1 2017-07-11 21:48:33 -04:00
Ben Newman
68f7e25f49 Bump package versions for 1.5.1-rc.5 release. 2017-07-11 21:18:23 -04:00
Ben Newman
c26ec896bf Bump package versions for 1.6-beta.6 release. 2017-07-11 12:28:14 -04:00
Ben Newman
11655454eb Merge branch 'master' into release-1.6 2017-07-11 12:22:28 -04:00
Ben Newman
fa7eb891e4 Bump package versions for 1.6-beta.5 release. 2017-07-11 12:07:47 -04:00
Steven Hao
98b02f363f Boilerplate refactor (#8820)
* boilerplate refactor wip

* rename files

* make switching between old/new easier

* refactor and modernize boilerplate-generator

* add cordova template code

* delete old boilerplate-generator

* small style fixes

* address comments

* address review comments again

* remove boilerplate generated-by comment

* delete spacebars templates

* add boilerplate-generator-tests

* bump boilerplate-generator version

* dummy commit

* Revert "dummy commit"

This reverts commit 54fe867690.

* update tests

*  refactor parameter destructuring

* fix style

* modernize boilerplate generator a bit

* refactor boilerplate-generator

* fix web browser template

* refactor boilerplate-generator-tests

* rename files using hyphens

* Remove spaces after object-shorthand method names.

Per the comment in
  https://github.com/meteor/meteor/pull/8820#discussion_r123635284

Previously, only the `constructor` method was addressed and this expands
on that.

* Add some space for legibility between conditionals.
2017-07-10 10:56:37 -07:00
Ben Newman
7ac2a5c229 Update various shrinkwraps to include integrity hashes. 2017-07-10 13:23:47 -04:00
Ben Newman
5146864012 Merge branch 'release-1.5.1' into release-1.6 2017-07-10 13:22:45 -04:00
Ben Newman
fdf17e01eb Bump package versions for 1.5.1-rc.4 release. 2017-07-10 12:52:38 -04:00
Ben Newman
c90801c24e Upgrade meteor-babel to version 0.22.0. 2017-07-10 12:26:11 -04:00
Ben Newman
662f889b28 Don't modify boilerplate.baseData when adding extraData.
This is a bug that will be fixed by @stevenhao's boilerplate-generator
refactoring (#8820), but I need it fixed now :)
2017-06-30 13:13:49 -04:00
Ben Newman
2b79dc7cd1 Bump boilerplate-generator package version to 1.1.1.
This version includes a01be34618.
2017-06-30 13:08:36 -04:00
Ben Newman
4051780fc1 Bump package versions for 1.5.1-rc.3 release. 2017-06-30 11:43:14 -04:00
Jesse Rosenberger
6ab936af81 Merge branch 'master' into devel 2017-06-30 11:35:54 +03:00
Jesse Rosenberger
384e3a5d94 Bump accounts-facebook version in preparation for publishing.
As a required bump for `facebook-oauth` dependency bump in
6f92ae9838b19914016e8c77a976d006279fc0b9 for
https://github.com/meteor/meteor/pull/8858.
2017-06-30 10:54:53 +03:00
Jesse Rosenberger
d72c55f0a2 Bump facebook-oauth version in preparation for publishing.
For https://github.com/meteor/meteor/pull/8858.
2017-06-30 10:54:50 +03:00
Ben Newman
e0565d5d16 Bump package versions for 1.5.1-rc.2 release. 2017-06-29 16:21:11 -04:00
Ben Newman
fb73388ce3 Make server-render API more flexible and isomorph-ish.
Render callbacks can now inject HTML content into multiple different
elements, and may also append content to the <head> or <body> elements, on
both the client and the server.

This new API was inspired by trying to use the styled-components npm
package on the server, which involves not only rendering and injecting
static HTML somewhere in the <body>, but also appending the resulting
<style> tag(s) into the <head>:

  import { onPageLoad } from "meteor/server-render";
  import { renderToString } from "react-dom/server";
  import { ServerStyleSheet } from "styled-components";

  onPageLoad(sink => {
    const sheet = new ServerStyleSheet();
    const html = renderToString(sheet.collectStyles(
      <App location={sink.request.url} />
    ));

    sink.renderIntoElementById("app", html);
    sink.appendToHead(sheet.getStyleTags());
  });

Note that the server-render package now exports an onPageLoad function,
rather than the old renderIntoElementById function. The functionality of
renderIntoElementById is now exposed by the {Client,Server}Sink API.

I say the client-side version of this API is 'isomorphish' to the
server-side version, because ClientSink methods can accept DOM nodes in
addition to raw HTML strings, whereas DOM nodes don't really make sense on
the server.
2017-06-29 15:08:32 -04:00
Hasan Tayyar BEŞİK
3096dac5b2 Update Facebook api version in loginUrl
The most recent version of the API is Version 2.9, which was introduced on April 18th, 2017 https://developers.facebook.com/docs/apps/changelog
2017-06-29 10:31:25 +02:00
Ben Newman
38b7c051d1 Bump package versions for 1.6-beta.4 release. 2017-06-28 11:37:27 -04:00
Ben Newman
9ce9563b89 Bump minor versions of packages dependent on accounts-password. 2017-06-28 10:08:33 -04:00
Ben Newman
2b89d420c9 Keep accounts-password on the 1.x major version line.
Meteor 1.5.1 will pin version 1.4.x of the accounts-password package, so
Meteor 1.6 only needs to use a different (greater) minor version.

Related: 0ad123db5b
2017-06-28 10:01:16 -04:00
Ben Newman
576641658c Bump package versions for 1.5.1-rc.1 release. 2017-06-27 20:06:58 -04:00
Ben Newman
5b05f8be3d Conform http package shrinkwrap file to package-lock.json format. 2017-06-27 19:22:04 -04:00
Ben Newman
f922a7c59c Conform less and stylus shrinkwraps to package-lock.json format. 2017-06-27 19:22:04 -04:00
Ben Newman
321c880498 Conform modules{,-runtime} shrinkwrap to package-lock.json format. 2017-06-27 19:22:04 -04:00
Ben Newman
ba0c09b1d9 Conform babel-compiler shrinkwrap file to package-lock.json format. 2017-06-27 19:22:04 -04:00
Ben Newman
fdd12e15e9 Stop clearing the npm cache unnecessarily before tests.
Based on this warning:

npm ERR! As of npm@5, the npm cache self-heals from corruption issues and
npm ERR! data extracted from the cache is guaranteed to be valid. If you
npm ERR! want to make sure everything is consistent, use 'npm cache
npm ERR! verify' instead.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this
npm ERR! command with --force.
2017-06-27 19:22:04 -04:00
Ben Newman
0ad123db5b Bump accounts-password minor (not major) version.
Previously: 4be0fbd594
2017-06-27 16:59:40 -04:00
Ben Newman
fe3284644c Fix typo in webapp_server error handler. 2017-06-27 13:32:54 -04:00
Ben Newman
d39872fc52 Bump package versions for 1.6-beta.3 release. 2017-06-27 11:32:43 -04:00
Ben Newman
e3e259169f Merge branch 'release-1.5.1' into release-1.6 2017-06-27 11:30:41 -04:00
Ben Newman
02b4b6b2b7 Bump package versions for 1.5.1-rc.0 release. 2017-06-27 11:13:17 -04:00
Ben Newman
4e8917db98 Bump shell-server package version to 0.2.4. 2017-06-27 11:12:48 -04:00
Ben Newman
ac2595ad92 Merge branch 'devel' into release-1.5.1 2017-06-27 09:36:42 -04:00
Antonio Tapiador del Dujo
0b1a1ef59f Make require and module visible for meteor shell scripts 2017-06-27 09:31:43 -04:00