Commit Graph

22356 Commits

Author SHA1 Message Date
Radosław Miernik
92555c32ba Further small optimizations. 2017-07-13 16:46:08 +02:00
Mikael Sand
a199345f96 Upgrade Node to 8.1.4, fixes CVE-2017-1000381 (#8906)
https://nodejs.org/en/blog/vulnerability/july-2017-security-releases/
2017-07-13 10:19:29 -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
Mitar
d4c4bf364d filePath is relative to appPath (#8885)
Interpret filePath as relative to appPath.
2017-07-13 08:56:38 -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
bfc8a60b8c Merge pull request #8788 from meteor/release-1.5.1
Release 1.5.1
2017-07-12 18:33:31 -04:00
Ben Newman
633c9ca024 Merge pull request #8894 from meteor/abernix/console-es6
"Console" ECMAScript Modernization
2017-07-12 17:15:36 -04:00
Ben Newman
50a630318e Bump package versions for the official 1.5.1 release. release/METEOR@1.5.1 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
94073ec513 Update History.md with final notes for Meteor 1.5.1. 2017-07-12 16:04:20 -04:00
Rob Fallows
7d2416435b (re)fixes #8879 Build phase command line output jumps 2017-07-12 14:43:45 -04:00
Radosław Miernik
7c45a9c912 Refactored Sorter. 2017-07-12 20:14:13 +02:00
Radosław Miernik
df15f09d6a Refactored server. 2017-07-12 20:03:31 +02:00
Radosław Miernik
7233d7aabb Refactored Matcher. 2017-07-12 19:51:43 +02:00
Radosław Miernik
2c5094fa0c Refactored LocalCollection. 2017-07-12 19:46:10 +02:00
Radosław Miernik
a686b93e06 Refactored Cursor. 2017-07-12 18:39:01 +02:00
Radosław Miernik
fe576f60ce Refactored common. 2017-07-12 18:38:47 +02:00
Radosław Miernik
f4a59e8bba Reorganized entry files. 2017-07-12 16:41:26 +02:00
Vlad Lasky
76808e882f Tweaked code to no longer need to call existsSync() to avoid potential for race condition when checking for existing UNIX socket file 2017-07-12 23:52:48 +10: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. release/METEOR@1.5.1-rc.5 2017-07-11 21:18:23 -04:00
Ben Newman
242aaed6bd Bump $BUNDLE_VERSION to 4.8.21 before rebuilding dev bundle. 2017-07-11 21:06:21 -04:00
Ben Newman
afbe59dafa Upgrade Node to version 4.8.4.
https://nodejs.org/en/blog/release/v4.8.4/

Fixes #8896.
2017-07-11 21:05:58 -04:00
Radosław Miernik
ed9c8e932b Spreads. 2017-07-12 00:41:47 +02:00
Radosław Miernik
521ca42006 ESLint fix magic. 2017-07-12 00:38:21 +02:00
Radosław Miernik
e1ef1e2984 Got rid of self (sic!). 2017-07-12 00:18:20 +02:00
Radosław Miernik
d01c0bbf88 Modernization in progress. 2017-07-11 23:30:29 +02:00
Radosław Miernik
0343e52d81 Separation finished. 2017-07-11 23:12:18 +02:00
Radosław Miernik
b893390895 Separated. 2017-07-11 22:45:34 +02:00
Radosław Miernik
fdc11af6da Separated Cursor. 2017-07-11 22:32:30 +02:00
Radosław Miernik
083e3a5f7c Separated LocalCollection. 2017-07-11 22:29:15 +02:00
Radosław Miernik
7cf9c2116c Separated Matcher. 2017-07-11 21:58:16 +02:00
Radosław Miernik
7275e1d080 Combined files. 2017-07-11 20:42:15 +02:00
Radosław Miernik
cdf25619b9 Styling fixes. 2017-07-11 18:31:17 +02:00
Ben Newman
c26ec896bf Bump package versions for 1.6-beta.6 release. release/METEOR@1.6-beta.6 2017-07-11 12:28:14 -04:00
Ben Newman
1eda715f48 Upate eslint shrinkwrap for npm@5.2.0. 2017-07-11 12:28:11 -04:00
Ben Newman
11655454eb Merge branch 'master' into release-1.6 2017-07-11 12:22:28 -04:00
Ben Newman
bc0d208fa9 Bump $BUNDLE_VERSION to 8.1.7 before rebuilding dev bundle. 2017-07-11 12:07:49 -04:00
Ben Newman
75373000bd Update npm to version 5.2.0.
http://blog.npmjs.org/post/162844303435/v520-2017-07-05
2017-07-11 12:07:48 -04:00
Ben Newman
36302ba715 Set METEOR_WATCH_PRIORITIZE_CHANGED to "false" in "update during run" self-test. 2017-07-11 12:07:47 -04:00
Ben Newman
fa7eb891e4 Bump package versions for 1.6-beta.5 release. 2017-07-11 12:07:47 -04:00
Ben Newman
12753cb916 Additional timeouts for Meteor 1.6 failing tests.
Note that eee519ad58 greatly reduced the
TIMEOUT_SCALE_FACTOR for Circle CI tests, which likely caused some tests
to time out more often, so these additional timeouts are really just a way
of re-bumping individual timeouts, which arguably leaves the test suite in
a better overall state of health.
2017-07-11 12:07:46 -04:00
Ben Newman
692602ac46 Set METEOR_WATCH_PRIORITIZE_CHANGED to "false" in "update during run" self-test. 2017-07-10 22:11:33 -04:00
Jesse Rosenberger
3a6e4eb199 Replace remaining selfs with this in new Console classes. 2017-07-10 12:42:07 -07:00
Jesse Rosenberger
d54631f78b Change most function expressions into ES arrow functions. 2017-07-10 12:42:06 -07:00
Jesse Rosenberger
200627168c Change ProgressDisplayNone to an ES class. 2017-07-10 12:42:05 -07:00