From f9b3aba2b6328af86b3f2901ac1de58915f15624 Mon Sep 17 00:00:00 2001 From: "dr.dimitru" Date: Sun, 18 Jun 2017 13:35:35 +0300 Subject: [PATCH] v1.8.0 - Exact code splitting for Client and Server to avoid backend NPM package being imported on the Client. Fixing: #450 #445 #444 - Catch Exception on `new Blob` and `window.URL.createObjectURL` although `Blob` and `URL` is exists on global scope may thrown an error on access in some bizarre browsers --- .versions | 2 +- package.js | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.versions b/.versions index e56e7b50..5f83c8ba 100644 --- a/.versions +++ b/.versions @@ -38,7 +38,7 @@ npm-mongo@2.2.24 observe-sequence@1.0.16 ordered-dict@1.0.9 ostrio:cookies@2.2.1 -ostrio:files@1.7.17 +ostrio:files@1.8.0 promise@0.8.9 random@1.0.10 reactive-var@1.0.11 diff --git a/package.js b/package.js index 4d9dd511..0d2c7490 100755 --- a/package.js +++ b/package.js @@ -1,24 +1,25 @@ Package.describe({ name: 'ostrio:files', - version: '1.7.17', + version: '1.8.0', summary: 'File upload via DDP/HTTP to server FS, AWS, GridFS, DropBox, Google Drive or other 3rd party storage', git: 'https://github.com/VeliovGroup/Meteor-Files', documentation: 'README.md' }); +Npm.depends({ + 'fs-extra': '3.0.1', + 'request': '2.81.0', + 'throttle': '1.0.3', + 'file-type': '5.2.0' +}); + Package.onUse(function(api) { api.versionsFrom('1.4'); api.use('webapp', 'server'); api.use(['reactive-var', 'tracker', 'http'], 'client'); api.use(['mongo', 'underscore', 'check', 'random', 'coffeescript', 'ecmascript', 'ostrio:cookies@2.2.1'], ['client', 'server']); api.addAssets('worker.min.js', 'client'); - api.mainModule('files.coffee', ['server', 'client']); + api.mainModule('files-server.coffee', 'server'); + api.mainModule('files-client.coffee', 'client'); api.export('FilesCollection'); }); - -Npm.depends({ - 'fs-extra': '3.0.1', - 'request': '2.81.0', - 'throttle': '1.0.3', - 'file-type': '4.3.0' -});