Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
 - Atmosphere and NPM packages update
 - Utilize new [email protected] dynamic imports and code splitting
 - Add ServiceWorker
 - Support for IE >= 10
 - Fixes for Safari
 - Overall codebase enhancements
  • Loading branch information
dr-dimitru committed Jul 23, 2017
1 parent c6c7eca commit 74804b5
Show file tree
Hide file tree
Showing 5,773 changed files with 193,540 additions and 470,554 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .node_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.8.2
v4.8.4
35 changes: 7 additions & 28 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,21 @@
{
"name": "Meteor-Files-Demo",
"version": "1.7.16",
"description": "Upload files with thes speed of Meteor. Application build on top of ostrio:files package",
"version": "1.8.1",
"description": "Upload files with the speed of Meteor. Application build on top of ostrio:files package",
"repository": "https://github.com/VeliovGroup/Meteor-Files-Demo",
"website": "https://github.com/VeliovGroup/Meteor-Files-Demo",
"logo": "https://raw.githubusercontent.com/VeliovGroup/Meteor-Files/master/logo.png",
"scripts": {
"start": "node main.js"
},
"dependencies": {
"async": "^2.4.0",
"aws-sdk": "^2.54.0",
"aws-sdk": "^2.87.0",
"babel-runtime": "^6.23.0",
"connect": "^3.6.2",
"dropbox": "^0.10.3",
"fibers": "^1.0.15",
"file-type": "^4.3.0",
"fs-extra": "^3.0.1",
"gm": "^1.23.0",
"http-proxy": "^1.13.2",
"keypress": "^0.2.1",
"meteor-deque": "*",
"meteor-node-stubs": "^0.2.6",
"meteor-promise": "^0.8.4",
"mime": "^1.3.6",
"mongodb": "^2.2.26",
"node-gyp": "^3.6.1",
"node-pre-gyp": "^0.6.34",
"progress": "^1.1.8",
"promise": "7.1.1",
"request": "^2.81.0",
"semver": "^5.3.0",
"sockjs": "^0.3.16",
"source-map-support": "https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e",
"stream-buffers": "^3.0.0",
"throttle": "^1.0.3",
"underscore": "^1.8.3",
"useragent": "^2.1.13"
"meteor-node-stubs": "^0.2.11",
"request": "^2.81.0"
},
"env": {
"ROOT_URL": {
Expand Down Expand Up @@ -107,7 +86,7 @@
}
],
"engines": {
"node": "4.8.2",
"npm": "4.5.0"
"node": "4.8.4",
"npm": "4.6.1"
}
}
33 changes: 6 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Meteor-Files",
"version": "1.7.16",
"version": "1.8.1",
"description": "Upload files with the speed of Meteor. Application build on top of ostrio:files package",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -30,37 +30,16 @@
},
"homepage": "https://github.com/VeliovGroup/Meteor-Files-Demo",
"dependencies": {
"async": "^2.4.0",
"aws-sdk": "^2.54.0",
"aws-sdk": "^2.88.0",
"babel-runtime": "^6.23.0",
"connect": "^3.6.2",
"dropbox": "^0.10.3",
"fibers": "^1.0.15",
"file-type": "^4.3.0",
"fs-extra": "^3.0.1",
"gm": "^1.23.0",
"http-proxy": "^1.13.2",
"keypress": "^0.2.1",
"meteor-deque": "*",
"meteor-node-stubs": "^0.2.6",
"meteor-promise": "^0.8.4",
"mime": "^1.3.6",
"mongodb": "^2.2.26",
"node-gyp": "^3.6.1",
"node-pre-gyp": "^0.6.34",
"progress": "^1.1.8",
"promise": "7.1.1",
"request": "^2.81.0",
"semver": "^5.3.0",
"sockjs": "^0.3.16",
"source-map-support": "https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e",
"stream-buffers": "^3.0.0",
"throttle": "^1.0.3",
"underscore": "^1.8.3",
"useragent": "^2.1.13"
"meteor-node-stubs": "^0.2.11",
"request": "^2.81.0"
},
"engines": {
"node": "4.8.2",
"npm": "4.5.0"
"node": "4.8.4",
"npm": "4.6.1"
}
}
1,945 changes: 883 additions & 1,062 deletions programs/server/app/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion programs/server/app/app.js.map

Large diffs are not rendered by default.

53 changes: 44 additions & 9 deletions programs/server/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ var Profile = require('./profile.js').Profile;
// This code is duplicated in tools/main.js.
var MIN_NODE_VERSION = 'v0.10.41';

var hasOwn = Object.prototype.hasOwnProperty;

if (require('semver').lt(process.version, MIN_NODE_VERSION)) {
process.stderr.write(
'Meteor requires Node ' + MIN_NODE_VERSION + ' or later.\n');
Expand Down Expand Up @@ -124,6 +126,34 @@ var startCheckForLiveParent = function (parentPid) {
}
};

var specialArgPaths = {
"packages/modules-runtime.js": function () {
return {
npmRequire: npmRequire,
Profile: Profile
};
},

"packages/dynamic-import.js": function (file) {
var dynamicImportInfo = {};

Object.keys(configJson.clientPaths).map(function (key) {
var programJsonPath = path.resolve(configJson.clientPaths[key]);
var programJson = require(programJsonPath);

dynamicImportInfo[key] = {
dynamicRoot: path.join(path.dirname(programJsonPath), "dynamic")
};
});

dynamicImportInfo.server = {
dynamicRoot: path.join(serverDir, "dynamic")
};

return { dynamicImportInfo: dynamicImportInfo };
}
};

var loadServerBundles = Profile("Load server bundles", function () {
_.each(serverJson.load, function (fileInfo) {
var code = fs.readFileSync(path.resolve(serverDir, fileInfo.path));
Expand Down Expand Up @@ -269,13 +299,17 @@ var loadServerBundles = Profile("Load server bundles", function () {
},
};

var isModulesRuntime =
fileInfo.path === "packages/modules-runtime.js";

var wrapParts = ["(function(Npm,Assets"];
if (isModulesRuntime) {
wrapParts.push(",npmRequire,Profile");
}

var specialArgs =
hasOwn.call(specialArgPaths, fileInfo.path) &&
specialArgPaths[fileInfo.path](fileInfo);

var specialKeys = Object.keys(specialArgs || {});
specialKeys.forEach(function (key) {
wrapParts.push("," + key);
});

// \n is necessary in case final line is a //-comment
wrapParts.push("){", code, "\n})");
var wrapped = wrapParts.join("");
Expand All @@ -296,9 +330,10 @@ var loadServerBundles = Profile("Load server bundles", function () {
// what require() uses to generate its errors.
var func = require('vm').runInThisContext(wrapped, scriptPath, true);
var args = [Npm, Assets];
if (isModulesRuntime) {
args.push(npmRequire, Profile);
}

specialKeys.forEach(function (key) {
args.push(specialArgs[key]);
});

Profile(fileInfo.path, func).apply(global, args);
});
Expand Down
2 changes: 1 addition & 1 deletion programs/server/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"meteorRelease": "METEOR@1.4.4.2",
"meteorRelease": "METEOR@1.5.1",
"appId": "5x3da39sxim5ucthkf",
"clientPaths": {
"web.browser": "../web.browser/program.json"
Expand Down
4 changes: 1 addition & 3 deletions programs/server/npm-rebuilds.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
[
"npm"
]
[]
10 changes: 5 additions & 5 deletions programs/server/npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/mime

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/mkdirp

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/node-gyp

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/node-pre-gyp

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/nopt

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/rc

This file was deleted.

1 change: 0 additions & 1 deletion programs/server/npm/node_modules/.bin/rimraf

This file was deleted.

23 changes: 0 additions & 23 deletions programs/server/npm/node_modules/abbrev/README.md

This file was deleted.

61 changes: 0 additions & 61 deletions programs/server/npm/node_modules/abbrev/abbrev.js

This file was deleted.

Loading

0 comments on commit 74804b5

Please sign in to comment.