Commit Graph

8678 Commits

Author SHA1 Message Date
Ben Newman
d65a6c9a9d Bump package versions for 1.5.2-beta.3 release. 2017-07-19 10:03:08 -04:00
Jesse Rosenberger
4fe8541fcd Bump version of cordova-plugin-meteor-webapp to 1.4.2.
To get the changes from meteor/cordova-plugin-meteor-webapp#25.
2017-07-18 16:03:27 -07:00
Jan Owsiany
08fdc8a6f0 Update cordova-lib, cordova-ios, cordova-android and cordova plugins to the latest version 2017-07-18 13:53:49 -04:00
Ben Newman
2c446101bb Bump package versions for 1.5.2-beta.2 release. 2017-07-17 18:01:06 -04:00
Ben Newman
d72bb99985 Bump package versions for 1.5.2-beta.1 release.
Since the -beta152.1 suffix is redundant with the meteor-tool version and
the release version, I'm using just -beta.1 for those versions, but I'm
using -beta152.1 for all other package versions, to avoid overlap with
versions previously published on the release-1.6 branch.
2017-07-17 16:34:39 -04:00
Ben Newman
c65962f758 Bump package versions for 1.5.2-beta152.0 release.
The "-beta152.0" suffix contains "152" to avoid overlapping with versions
of packages published on the release-1.6 branch.
2017-07-14 14:15:56 -04:00
Ben Newman
335fb37a1c Bump minor versions of babel-compiler and modules packages.
Since the beta versions of these packages are likely to overlap with
previously published beta versions on the release-1.6 branch, we should be
sure to use a distinct suffix like -beta152.n.
2017-07-14 13:37:58 -04:00
Ben Newman
36bf9bb7fe Upgrade meteor-babel and reify packages to latest versions. 2017-07-14 13:34:32 -04:00
Ben Newman
dc1ba4c905 Upgrade meteor-promise and promise packages to latest versions. 2017-07-14 13:22:36 -04:00
Ben Newman
6ae9cfc3e4 Bump mongo and minimongo minor versions after #8815. 2017-07-13 20:22:23 -04:00
Ben Newman
e3e7523675 Minor style tweaks (mostly adding missing semicolons). 2017-07-13 18:37:29 -04:00
seke
b5a9fde887 Adjust styling as per PR review 2017-07-13 18:26:07 -04:00
Seba Kerckhof
4531b3893c Optimize by only shallow cloning when modifier is replacement 2017-07-13 18:26:06 -04:00
seke
d89d6987fb Restore original indentation 2017-07-13 18:26:06 -04:00
seke
6105f62069 finish tests (hopefully) 2017-07-13 18:26:05 -04:00
seke
dbb24f5788 Revert order of simulated upsert to original order 2017-07-13 18:26:05 -04:00
Seba Kerckhof
b252e31f49 Fix most tests 2017-07-13 18:26:04 -04:00
seke
970044402e Fail faster in case of forbidden replace 2017-07-13 18:26:04 -04:00
seke
12d03f2607 Don't modify the input variables when creating upsert document 2017-07-13 18:26:03 -04:00
seke
8a7db6bdc5 Fix mongo driver when using object ids 2017-07-13 18:26:03 -04:00
seke
1fae40b204 Change logic of simulated upsert to always result in same result as normal upsert 2017-07-13 18:26:02 -04:00
seke
e06f88bdd4 Update mongo driver test 2017-07-13 18:26:02 -04:00
seke
1205655f21 Expand minimongo tests 2017-07-13 18:26:01 -04:00
seke
dac2f64d59 Track wether the _id is auto generated when doing an upsert 2017-07-13 18:26:01 -04:00
seke
2c9d46de19 Move _id change validation to LocalCollection._modify 2017-07-13 18:26:00 -04:00
seke
bb3c02900f Remove mongo 2.4-specific check 2017-07-13 18:26:00 -04:00
seke
5153d0778e Add rules for ambiguous _id values 2017-07-13 18:25:59 -04:00
Seba Kerckhof
c02e96d82e Create mongo-typed upsert document 2017-07-13 18:25:59 -04:00
Seba Kerckhof
3580edfeae Deal with regexp shorthand notation 2017-07-13 18:25:58 -04:00
Seba Kerckhof
29b6913f31 Add test for https://github.com/meteor/meteor/issues/5294 2017-07-13 18:25:58 -04:00
Seba Kerckhof
dda994c262 Make minimongo upsert compliant with mongo behavior (https://github.com/meteor/meteor/issues/8806) 2017-07-13 18:25:57 -04:00
Ben Newman
eff594dacf Add core-js/es6/regexp polyfills to ecmascript-runtime-client.
Helps with #8821.
2017-07-13 17:46:48 -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
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
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
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