Commit Graph

8254 Commits

Author SHA1 Message Date
Ben Newman
6def3891e1 Bump package versions for 1.5-beta.9 release. 2017-03-04 20:09:27 -05:00
Ben Newman
1401a3be6e Merge branch 'master' into release-1.5 2017-03-04 20:08:50 -05:00
Ben Newman
027d3e15a7 Share cache.checkMany transaction between simultaneous calls.
If import(...) is called multiple times in quick succession, these changes
should allow cache.checkMany to avoid the overhead of creating multiple
IndexedDB transactions.
2017-03-04 19:56:11 -05:00
Ben Newman
eb33152ce3 Prevent IndexedDB from auto-committing too early.
Discussion: https://twitter.com/benjamn/status/838108246841917441
2017-03-04 19:56:11 -05:00
Ben Newman
be68fb8d2f Call this.unblock() in __dynamicImport method.
This prevents __dynamicImport from blocking other method calls made by the
application, but introduces the possibility that __dynamicImport method
results could be delivered out of order, which is now handled in the
fetchMissing function.
2017-03-04 19:00:32 -05:00
Ben Newman
e8f224638c Postpone cache.setMany if cache.checkMany currently underway. 2017-03-04 19:00:32 -05:00
Ben Newman
afb7e31c51 Use IndexedDB instead of localStorage for caching dynamic modules.
I was able to achieve tolerable performance by using only one (read-only)
transaction for each cache.getMany call, and only one (read+write)
transaction for each cache.setMany call.
2017-03-04 19:00:31 -05:00
Jesse Rosenberger
6ec8143518 Bump package version in preparation for publishing. 2017-03-01 12:39:56 +02:00
Jesse Rosenberger
8fdea33cfb Remove version constraint from minifier-css in standard-minifier-css.
This restriction was preventing the standard-minifier-css from getting
the latest updates to minifier-css.  Typically, when publishing
a package outside of a release cycle, I believe we need to manually add
this constraint since `meteor publish-release` normally takes care of it
automatically, however in most cases, I don't believe this should be
(permanently) committed.

I may stand to be corrected, but will find out soon!
2017-03-01 12:24:33 +02:00
Jesse Rosenberger
1503dd1d9c Remove version constraint from standard-minifier-js.
This was only intended to be there during the publishing of
`standard-minifier-js` as part of meteor/meteor#8414 and is normally
not necessary as part of the `meteor publish-release` process.
2017-03-01 01:39:37 +02:00
Jesse Rosenberger
aeee279d6d Remove -beta.* suffixes in preparation for publishing. 2017-02-28 14:41:34 +02:00
Jesse Rosenberger
394812df15 Add version constraint on minifier-js@1.2.18-beta.0. 2017-02-28 14:29:46 +02:00
Jesse Rosenberger
c24cb71c11 Bump package versions in preparation for publishing. 2017-02-28 13:42:39 +02:00
Jesse Rosenberger
6c4507f004 Allow minified.code to be an empty string.
In order to allow for a blank `app.js` which occurs in the case of
a Meteor app using a fully-"package"-based structure with no actual
application code in the top-level.  See meteor/meteor#8414 for more.
2017-02-28 13:42:39 +02:00
Jesse Rosenberger
4e6d07d2a3 Undangle dangling semi-colon. 2017-02-28 13:42:38 +02:00
Jesse Rosenberger
e898c3a25f Bump package versions in preparation for publishing. 2017-02-28 13:42:38 +02:00
Jesse Rosenberger
aa111f83f1 Remove underscore dependency which is not used in this package. 2017-02-28 13:42:38 +02:00
Jesse Rosenberger
1a380f5532 Improve minifiers to capture error from UglifyJS.
The error messages which come from UglifyJS tend to be quite cryptic, as
seen in issues like meteor/meteor#8370 or meteor/meteor#8020.  The file,
line, and column are provided, however the message is garbled and the
stacktrace long and acutely harrowing.  Since these errors are occurring
on automatically concatenated files, even the line number is sometimes
not helpful.  Additionally, sourceMaps are not available in production
builds, intentionally.  (I wasn't able to access them from
`file.getSourceMap()` or `file.sourceMap` at all.)

In addition to actually providing the name of the encapsulating file,
which provides _some_visibility, this commit implements a parser around
the UglifyJS error which detects the error and location information of
the error, seeks to the line in the concatenated source, reads the
inline filename, and provides it in the output.

Crude, but incredibly helpful in diagnosing this problem until a better
solution is reached.
2017-02-28 13:42:38 +02:00
Maciej Trębacz
705ff31062 Remove jQuery dependency from http package (#8389)
`jquery` is no longer necessary as of 4e922fd709 and thus the removal of this dependency is warranted.
2017-02-23 12:31:04 +02:00
Ben Newman
a78b09fa85 Check arguments to __dynamicImport method call.
This prevents the audit-argument-checks package from complaining about
this method in production.
2017-02-22 12:28:59 -05:00
Ben Newman
cd62d4284e Enable eval if browser-policy-content is used. 2017-02-22 10:46:39 -05:00
Ben Newman
a9ac309fb9 Bump package versions for 1.5-beta.8 release. 2017-02-21 13:26:01 -05:00
Ben Newman
41e9ee857e Evaluate dynamic module code in package scope.
This should elegantly address the issues described in this comment:
https://github.com/meteor/meteor/pull/8327#issuecomment-280881830

I toyed with the possibility of turning package variables (both imports
from other packages and intercepted "global" variable assignments) into
properties on a shared namespace object, but that would have been a major
breaking change for existing package code, because it would have required
automatically rewriting variable references in package modules.
2017-02-21 11:47:31 -05:00
Ben Newman
2c172db31a Merge branch 'devel' into release-1.5 2017-02-21 11:33:00 -05:00
Ben Newman
2a32faf27a Bump package versions for 1.5-beta.7 release. 2017-02-16 18:34:03 -05:00
Ben Newman
a1c4df3f57 Call api.use("ddp") in dynamic-import/package.js.
Though I am still considering alternatives to DDP, the dynamic-import
package should depend on the packages that it uses.
2017-02-16 18:20:42 -05:00
Ben Newman
edb4e0664c Walk dynamic module graph synchronously.
I made this code asynchronous at first to accommodate the asynchronous
cache API, but walking the graph needs to happen synchronously so that
near-simultaneous dynamic import(...)s do not interleave.
2017-02-16 18:20:41 -05:00
Ben Newman
eadd954115 Use alias instead of stub module for meteor/package imports.
Aliases are lighter weight than stub module functions, and easier for the
dynamic import(...) dependency traversal logic to understand.
2017-02-16 18:20:41 -05:00
Jesse Rosenberger
de2e16b313 Bump version of check package to 1.2.5 in preparation for publishing. 2017-02-15 21:42:28 +02:00
Jesse Rosenberger
b3e34fc273 Merge pull request #8351 from nlhuykhang/update-isPlainObject-from-jquery-v3.1.1
Extract new isPlainObject function from JQuery v3.1.1
2017-02-15 18:57:49 +02:00
Hugh Willson
4f3713f03c Added in Meteor.loggingOut() and related Blaze helpers. (#8271)
* Added in Meteor.loggingOut() and related Blaze helpers.

* Switched loggingIn/loggingOut over to use ReactiveVar; More tests.

* Changed logginInOut helper name to loggingInOrOut.
2017-02-15 11:22:57 -05:00
Ben Newman
87d95ce60f Bump package versions for 1.5-beta.6 release. 2017-02-14 12:38:36 -05:00
Ben Newman
92480b09a0 Regenerate packages/modules/.npm/package/npm-shrinkwrap.json. 2017-02-14 12:31:54 -05:00
Ben Newman
95a7d11018 Regenerate packages/babel-compiler/.npm/package/npm-shrinkwrap.json. 2017-02-14 12:31:40 -05:00
Ben Newman
6b89bed42d Merge branch 'devel' into release-1.5 2017-02-14 12:28:59 -05:00
Ben Newman
954333b813 Bump package versions for the official 1.4.3.1 release. 2017-02-13 19:57:26 -05:00
Ben Newman
5465ab8aee Bump package versions for 1.4.3.1-rc.1 release.
@abernix Bumping the ecmascript version is apparently necessary if the
babel-compiler package has changed, presumably because ecmascript defines
a compiler plugin that uses babel-compiler. Unless the ecmascript version
has been bumped, babel-compiler changes won't appear to have any effect.
2017-02-13 19:22:54 -05:00
Ben Newman
21185dad10 Bump package versions for 1.4.3.1-rc.0 release. 2017-02-13 18:17:06 -05:00
Ben Newman
ebbc02d025 Upgrade meteor-babel and reify to versions 0.14.4 and 0.4.8.
Thanks to @abernix for fixing this Babel/Babylon bug in Reify:
https://github.com/benjamn/reify/pull/62

Fixes #8312.
2017-02-13 18:11:11 -05:00
Khang Nguyen-Le
5914d95ab0 Extract new isPlainObject function from JQuery v3.1.1 2017-02-11 13:36:10 +07:00
Ben Newman
b76bed6eff Merge branch 'devel' into release-1.5 2017-02-10 19:45:52 -05:00
Ben Newman
92ab3e461a Update package versions for the official 1.4.3 release. 2017-02-10 18:45:22 -05:00
Ben Newman
3d16706f00 Bump package versions for 1.4.3-rc.6 release. 2017-02-10 17:52:32 -05:00
Ben Newman
ad9f218042 Move various deprecated packages to packages/deprecated. 2017-02-10 17:47:27 -05:00
Ben Newman
020f8f7908 Only bump minor version of url package, not major.
This still indicates a potentially breaking change, but not a drastic
overhaul. I think people are going to hit constraint solver issues because
of this bump, and I don't want the change to seem more significant than it
really is.
2017-02-10 17:14:51 -05:00
Ben Newman
b6e3a52b63 Bump package versions for 1.5-beta.5 release. 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
db848e2dde Bump package versions for 1.4.3-rc.5 release. 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