Commit Graph

8505 Commits

Author SHA1 Message Date
Ben Newman
b1f6904a4e Bump package versions for 1.5-rc.7 release. 2017-05-26 20:14:56 -04:00
Ben Newman
b94443391a Upgrade reify to version 0.11.14 to polyfill WeakMap. 2017-05-26 20:12:10 -04:00
Ben Newman
e2210ef01d Update Reify API usage for version 0.11.13. 2017-05-26 18:22:02 -04:00
Ben Newman
93cf550c17 Upgrade meteor-babel to version 0.21.3 and reify to 0.11.13.
Fixes #8720.
2017-05-26 18:21:55 -04:00
Ben Newman
30082c17d5 Bump package versions for 1.5-rc.6 release. 2017-05-18 12:35:10 -04:00
Ben Newman
02cbf94834 Reorganize ecmascript-runtime-client to tolerate more core-js versions.
By not implicitly assuming a particular version of core-js (by importing
specific modules), we can avoid the problems reported in #8699.

Fixes #8699.
2017-05-18 12:32:20 -04:00
Ben Newman
f2d39c167b Bump package versions for 1.5-rc.5 release. 2017-05-17 16:30:40 -04:00
Ben Newman
c871916756 Tolerate older versions of core-js.
Should fix #8699.
2017-05-17 16:30:39 -04:00
Ben Newman
2aa5c28bdb Save 13.5KB minified JS by not forcing core-js TypedArray polyfills.
You can still import these polyfills yourself, if you need them.
2017-05-17 16:18:26 -04:00
Michiel ter Reehorst
fb2e35fa30 Move localStorage access back into try statement (#8703)
Accessing window.localStorage can immediately throw an error in IE (#1291) and other/older webkit versions.
2017-05-17 16:16:49 -04:00
Jesse Rosenberger
647e3a2fc5 Bump bundle-visualizer version to 1.0.1 in preparation for publishing. 2017-05-17 12:46:22 -04:00
Jesse Rosenberger
d45e51f544 Merge pull request #8688 from Primigenus/patch-12
Ensure visualizer displays on top of other UI
2017-05-17 12:15:20 -04:00
Ben Newman
8bd1005840 Bump package versions for 1.5-rc.4 release. 2017-05-16 15:30:37 -04:00
Ben Newman
ff53a91152 Bump package versions for 1.5-rc.3 release.
Something went wrong with 1.5-rc.2 such that publishing meteor-tool failed
with the following error on all platforms:

  While publishing package build for meteor-tool:
  error: Cannot override existing build

This makes no sense to me, but it necessitates another RC release. To be
clear, meteor-tool@1.5.0-rc.2 has not been successfully published on any
platform, so please don't bother trying to update to it.
2017-05-15 18:46:00 -04:00
Ben Newman
642e8a369f Bump package versions for 1.5-rc.2 release. 2017-05-15 16:17:24 -04:00
Ben Newman
e3bd1cfb9c Make dynamic import(...) caching more robust to IndexedDB failures.
Fixes #8697.
2017-05-15 12:11:30 -04:00
Rahul
f9772ea2ef Ensure visualizer displays on top of other UI
There was an issue where most of the visualizer was visible but the module size details displayed when hovering over a segment were hidden behind some UI elements. Setting a high z-index fixes it.
2017-05-11 19:58:23 -07:00
Ben Newman
4ee3fc1b5e Improve summary in dynamic-import/package.js. 2017-05-11 16:06:42 -04:00
Ben Newman
eb45a78982 Bump package versions for 1.5-rc.1 release. 2017-05-11 13:33:57 -04:00
Ben Newman
4cd46ded3c Minor tweaks to the meteor/non-core/bundle-visualizer package. 2017-05-11 13:16:42 -04:00
Jesse Rosenberger
a5a3611de8 New bundle-visualizer package for analyzing initial client bundles.
This package is required to be ran with `--production` in order to for
it to accurately use data from the minifier which is only provided when
emulating or actually in production.  The additional work required in
this mode is too costly to run during normal development as the
minification process (provided by UglifyJS, one of the fastest
minifiers) is still quite slow.

Once added, this package will display a sundial chart showing the weight
of the modules included in the application, in the web-browser, on top
of your existing application.

While maybe not the best final product, it's certainly something we can
iterate on and improve.

This package should be removed before bundling/deploying for production.
2017-05-11 01:16:59 +03:00
Ben Newman
74c64369d4 Bump package versions for 1.5-rc.0 release. 2017-05-10 13:45:12 -04:00
Ben Newman
9e32c00428 Give dynamic module manifest items a different type: "dynamic js".
Now that dynamic modules are part of the manifest that determines which
files are served over HTTP, I'm a bit paranoid about them somehow ending
up as <script> tags in the initial HTML of the application.

This commit adds another safety measure to prevent that, just in case the
boilerplate-generator package for some reason fails to skip items whose
.path starts with "dynamic/" (see my previous commit).
2017-05-10 12:30:19 -04:00
Ben Newman
b6694b2f5d Expose dynamic modules via HTTP, but do not load them eagerly.
This allows fetching the compiled code of dynamic modules via HTTP,
without generating <script> tags for those resources in the intial
boilerplate HTML of the application.

The URL for a dynamic module should be formed by taking its absolute
module identifier, prepending "/dynamic" and appending "?hash=<version>".
Appropriate version hashes can be obtained from the tree exported by the
meteor/dynamic-import/dynamic-versions.js module, though the hashes are
used only for cache busting, so they could be anything at all.

A good place to do this fetching would be the meteorInstall.fetch
callback, as defined (for example) in meteor/dynamic-import/client.js.
That implementation still uses a WebSocket rather than HTTP, but this
commit will allow us to experiment with HTTP in the future.

Because the code returned for these dynamic modules is wrapped as an
anonymous function expression, you'll need to fetch them using an
XMLHttpRequest, the HTTP fetch() function, or some similar utility, rather
than using a <script> tag, because executing the unmodified code as JS
will likely throw a syntax error.
2017-05-10 12:11:10 -04:00
Ben Newman
fba9e9dfe9 Restrict the dynamic-import package to Meteor 1.5+ apps. 2017-05-10 11:31:39 -04:00
Ben Newman
1af76603c6 Imply the dynamic-import package from the meteor-base package.
Since it's relatively easy to remove/replace the meteor-base package, this
should keep dynamic-import optional in principle, but also make sure it's
installed in most apps without need for `meteor add dynamic-import`.

I also considered implying the dynamic-import package from the ecmascript
package, but that would have made it much harder to opt out, and created
some nasty circular dependency problems.
2017-05-10 11:09:47 -04:00
Ben Newman
5f8b52b2c2 Use module.watch instead of module.importSync in getNamespace.
https://github.com/benjamn/reify/pull/159
2017-05-09 22:35:57 -04:00
Ben Newman
d78fa46d06 Bump package versions for 1.5-beta.20 release. 2017-05-09 22:25:25 -04:00
Ben Newman
656fbeba9b Upgrade meteor-babel to version 0.21.2 to enable class properties. 2017-05-09 21:56:20 -04:00
Ben Newman
3b6a577ffb Fix typo in dynamic-import/client.js comment. 2017-05-09 21:22:00 -04:00
Ben Newman
3bda1c3df8 Upgrade the meteor-babel, reify, and install npm packages. 2017-05-09 14:19:06 -04:00
Ben Newman
084801237a Report per-bundle stats from minifier. 2017-05-09 13:16:59 -04:00
Ben Newman
a89963fdbe Bump package versions for 1.5-beta.19 release. 2017-05-04 16:45:48 -04:00
Hugh Willson
9228345ce6 Fixed broken upserts with undefined selectors (#8668).
Fixes #8666.
2017-05-04 16:43:05 -04:00
Ben Newman
8f17fd5610 Merge branch 'devel' into release-1.5 2017-05-04 16:17:48 -04:00
Ben Newman
269e10caa6 Remove support for pkg.module in client bundles.
This partially reverts commit d7cae3c939.

This functionality was problematic without providing any clear benefits to
Meteor developers, as reported by @fermuch and @markoshust:
https://github.com/meteor/meteor/pull/8327#issuecomment-298723203
2017-05-04 16:09:45 -04:00
Ben Newman
46e00ab517 Upgrade the reify npm package to version 0.9.2. 2017-05-04 16:01:46 -04:00
nick-gudumac
4887a48639 Added support for making secure graph api requests with appsecret_proof (#8657)
* Added support for making graph api requests with appsecret_proof

* Add missing comma
2017-05-03 11:42:01 -04:00
ziedmahdi
534477b9ac fix bug when initiating dict with non string values (#8643) 2017-05-03 11:32:51 -04:00
Ben Newman
d6c4281eeb Merge pull request #8642 from mutdmour/issue3599
[#3599] match $near behavior in minimongo to mongo
2017-05-03 11:24:37 -04:00
Seba Kerckhof
541bfbf820 Remove nested properties from upsert selector document (#8633)
* Remove nested properties from upsert selector document

Fixes https://github.com/meteor/meteor/issues/8631

* Fix upserts that include _id in the selector

* Incorporate PR review requests.
2017-05-03 11:17:41 -04:00
Christian Klaussner
f0223c9151 Remove leading slash from paths in Babel options (#8610) 2017-05-03 11:14:21 -04:00
mutdmour
9900c226df $push $slice with positive numbers (#5167) (#8623) 2017-05-03 11:09:54 -04:00
Ben Newman
6fb8e1f0ab Bump package versions for 1.5-beta.18 release. 2017-05-02 11:42:53 -04:00
Ben Newman
64aa28cb6f Merge branch 'devel' into release-1.5 2017-05-02 11:20:28 -04:00
Ben Newman
6b34e1edc0 Merge branch 'master' into devel 2017-05-02 11:17:04 -04:00
Ben Newman
807c4224eb Update to latest meteorInstall.fetch API.
90fd573f86
2017-05-02 11:06:28 -04:00
Jesse Rosenberger
5e617b93c8 Bump minimongo package version to 1.0.23 in preparation for publishing. 2017-05-02 12:28:24 +03:00
Jesse Rosenberger
1ac0d4ca2f Bump package versions for the official 1.4.4.2 release. 2017-05-02 10:56:09 +03:00
Ben Newman
9c7778da36 Let the install npm package implement Module.prototype.prefetch.
Now anyone can define meteorInstall.fetch however they see fit, and the
install.js implementation will handle everything else.

This separation of concerns leads to significantly less code, too.
2017-05-01 23:55:00 -04:00