Commit Graph

15739 Commits

Author SHA1 Message Date
Martijn Walraven
fc508df990 Merge pull request #6101 from mitar/patch-25
Fixed manifest.json path on Windows
2016-02-08 10:17:34 +01:00
Martijn Walraven
aff1d4c17c Merge pull request #6060 from mitar/patch-23
Allow HTTP OPTIONS method to correctly support CORS preflight
2016-02-08 10:16:57 +01:00
Martijn Walraven
28b72f6caf Merge pull request #6059 from mitar/patch-22
Files without cache busters should not be set to cacheable
2016-02-08 10:16:12 +01:00
Ben Newman
f094c9608b Reserve dev bundle version for not yet released Meteor 1.3. 2016-02-05 00:09:40 -05:00
SEKE
eb897bc917 Make check check inherited properties
Add note about check change to history.md
2016-02-03 13:40:15 -08:00
Sashko Stubailo
df73a636c6 Add testing directions suggested by @queso 2016-02-03 00:36:03 -08:00
Sashko Stubailo
2ac1c9104e Switch to h1 2016-02-03 00:31:41 -08:00
Sashko Stubailo
217470f06c Move contributing guidelines out of the wiki
So that people can file PRs, and it's in the standard place for GitHub
2016-02-03 00:30:41 -08:00
ozsayag
a91a1cc787 Refactor static-html to not use jquery
Simply use setAttribute instead.

Fixes #5320
PR #6105
2016-02-03 00:24:07 -08:00
lassombra
85f2958b0b Make #each use _id in object or as getter in object's prototype
Fixes #6124 #6125
2016-02-03 00:20:18 -08:00
Sashko Stubailo
055f28f017 Merge pull request #6139 from pra85/patch-1
Fix typo in docs
2016-02-03 00:18:49 -08:00
Evan Marsland
06d64bfcd4 PATCH HTTP convenience method 2016-02-03 00:17:53 -08:00
Zoltan Olah
88458e794e Merge pull request #6090 from zimme/devonbarretwastoolazy
Remove duplicate exports.hasScheme
2016-02-02 15:02:20 -08:00
Prayag Verma
7596e64e16 Fix typo in docs
Found a spelling mistake -
`responsiblity` > `responsibility`
2016-02-02 20:14:22 +05:30
Mitar
fa9a896c7e Fixed manifest.json path on Windows. 2016-01-27 15:49:29 -08:00
Simon Fridlund
a3c701e9de Remove duplicate exports.hasScheme
Fixes #6089
2016-01-26 12:51:02 +01:00
Mitar
310b96d24d Allow HTTP OPTIONS method to correclty support CORS preflight. 2016-01-21 12:55:32 -08:00
Mitar
6d8240b90a Files without cache busters should not be set to cacheable. 2016-01-21 12:33:00 -08:00
Sashko Stubailo
68f27b2cd3 Merge pull request #6005 from nagelflorian/devel
Add meteor login / logout info to docs
2016-01-19 15:08:17 -08:00
Sashko Stubailo
d9abbc803f Fix double stache in docs about Template.dynamic 2016-01-19 11:07:59 -08:00
nagelflorian
fda81f65a1 Add meteor login / logout info to docs 2016-01-14 23:50:29 +01:00
Avital Oliver
7b53281af6 Reserve dev bundle version for not yet released Meteor 1.2.2 2016-01-13 11:25:56 -08:00
David Greenspan
c144e0c7d3 Merge pull request #5912 from mitar/better-error-messages
Better error messages for compiler plugins
2016-01-12 15:04:11 -08:00
Sashko Stubailo
89161b0bec Merge pull request #5928 from bwhitty/patch-2
Fix typo in Promise resolve call
2016-01-11 11:50:17 -08:00
Martijn Walraven
c766ce393c Merge pull request #5951 from meteor/webapp-caching-improvements
Webapp caching improvements
2016-01-11 13:04:06 +01:00
Martijn Walraven
bdbdad91d3 Set hash to version when serving manifest.json 2016-01-11 12:50:54 +01:00
Martijn Walraven
ce628dfb81 ETags should be enclosed in double quotes 2016-01-11 11:14:36 +01:00
Martijn Walraven
fdebebb7ed Replace deprecated connect.utils.parseUrl() with parseurl module
As recommended in the deprecation warning, we replace
connect.utils.parseUrl() usage with using the parseurl module directly.
2016-01-08 13:24:04 +01:00
Martijn Walraven
21ee605541 Support query parameter to avoid downloading index page when a file does not exist
When downloading files during a Cordova hot code push, we need to
detect if a file is not available instead of inadvertently downloading
the default index page.
2016-01-08 13:23:50 +01:00
Martijn Walraven
0a31dabcd6 Don't set Last-Modified based on the file date
If we serve files with a Last-Modified based on the file date, this
interferes with content-based cache validation using ETag because
clients are required to take both into account.
2016-01-08 13:21:30 +01:00
Martijn Walraven
b8a17dd97f Serve non-cacheable files with a max-age of 0 instead of a day
We previously served non-cacheable files with a max-age of a day. This was done
to avoid image flickering on page reload (see #773).
As far as I can tell, image flickering still occurs because `location.reload`
always forces validation. But switching to `location.replace` means that max-age
will actually be respected, and we don't want to cache these assets for a day
because then changes would not be visible on reloads.
2016-01-08 13:21:29 +01:00
Martijn Walraven
5d501d1793 Update send and connect dependencies for webapp package
Updating send was necessary to allow disabling setting Last-Modified,
and version dependencies required updating connect as well.
2016-01-08 13:21:29 +01:00
Martijn Walraven
5e9090c3ee Use location.replace() instead of location.reload() to avoid unnecessary asset validation
If a cached version of an asset is still fresh (depending on the `max-age`), there
is no need to send even a conditional request. Because `location.reload()` for
some reason does force validation, it makes sense to use `location.replace` instead
and improve reloading performance by avoiding unnecessary requests.
2016-01-08 13:21:29 +01:00
Martijn Walraven
dac580e212 Set ETag header to asset hash if available
Previously, the ETag header was set (by `send`) to a default value based on the
inode of the file. Using the asset hash instead allows for proper conditional
requests even after redeployments.

To take advantage of content-based caching, we also have to disable the
Last-Modified header because having this set to the file date would still make
requests conditional on the most recent deployment. This requires updating the
send dependency and is done in a separate commit.

Fixes #626.
2016-01-08 13:21:29 +01:00
Sheel Patel
a28aa7f95c Fixed incorrect property name in documentation 2016-01-07 22:43:52 -08:00
Doug Horner
3141308108 Override should come after Platform Synchronize
While processing a clean build (ie: meteor reset) this error occurs, because the platform directory exists but it empty.

Processing mobile-config.js
Writing new config.xml
Creating Cordova project
% Creating a new cordova project.
Preparing Cordova project from app bundle
Processing mobile-config.js
Copying resources for mobile apps
Writing new config.xml
Copying over the cordova-build-override directory
Adding platform iOS to Cordova project
% Adding ios project...
Adding plugin cordova-plugin-camera@1.2.0 to Cordova project
% Fetching plugin "cordova-plugin-camera@1.2.0" via npm
% Installing "cordova-plugin-camera" for android
% Failed to install 'cordova-plugin-camera':CordovaError: The provided path "/Users/horner/prj/wodrival/.meteor/local/cordova-build/platforms/android" is not an Android project.
    at new android_parser (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:35:15)
    at new PlatformProjectAdapter (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/platforms/platforms.js:61:19)
    at Object.getPlatformProject (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/platforms/platforms.js:97:23)
    at handleInstall (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:563:36)
    at /Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/plugman/install.js:363:28
    at _fulfilled (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:749:13)
    at /Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:509:49
    at flush (/Users/horner/.meteor/packages/meteor-tool/.1.1.10.1g3vmog++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:448:13)
=> Errors executing Cordova commands:
2016-01-07 12:11:52 +01:00
Sashko Stubailo
fdc4b3c6ce Make some more improvements 2016-01-06 18:51:55 -08:00
Sashko Stubailo
35df54c108 Remove parts of docs that are in the Meteor Guide now 2016-01-06 18:51:55 -08:00
Sashko Stubailo
52c67dd020 Update browser policy README 2016-01-05 15:25:17 -08:00
Sashko Stubailo
2efbe2df98 Merge pull request #5937 from mjmasn/5820-allow-middleware-to-set-http-status-code
Allow middleware to set http status code (fixes #5820)
2016-01-05 09:54:17 -08:00
Michael Mason
f263ca4fea Allow middleware to set http status code
This commit allows middleware to set the status code of the http response. This will allow a server-side router to return, for example, a '404 Not Found' response. This has SEO benefits because currently search engines may index example.org/page-that-doesn't-exist because Meteor returns a 200 OK code and the normal boilerplate response body. With a proper 404 status we can still return the boilerplate to render a client side 404 template but search engines won't index the page. Instead of a hardcoded 200 response, we call res.writeHead with res.statusCode, and fallback to the default 200 code if it has not been set.
2016-01-05 11:05:53 +00:00
Sashko Stubailo
4f8d7dce24 Merge pull request #5921 from IeuanG/patch-1
Updated year in licence
2016-01-04 14:50:28 -08:00
Mitar
5b4e1c6d39 Expose SessionDocumentView. 2016-01-04 11:00:19 -08:00
Braden Whitten
5e99a0542f Fix typo in Promise resolve call 2016-01-03 18:29:18 -08:00
Ieuan Griffiths
57e257c686 Updated year in licence 2016-01-02 12:37:17 +00:00
Mitar
28bf983ad5 Better error messages. 2015-12-31 11:17:46 +01:00
Sashko Stubailo
353e8e3a4a Merge pull request #5845 from mitar/patch-20
Allow to find the corresponding collection from the store
2015-12-29 11:01:24 -08:00
Sashko Stubailo
0f0c5d3bb3 Merge pull request #5859 from Slava/devel
Add profiling information to clearly outline slow legacy-style compilers
2015-12-29 10:31:28 -08:00
Sashko Stubailo
64be7cf92e Merge pull request #5898 from mitar/patch-21
Correct argument
2015-12-29 10:28:43 -08:00
Sashko Stubailo
9eb952685f Merge pull request #5902 from Primigenus/patch-10
Tiny typo
2015-12-29 10:28:05 -08:00