- Removed duplicate file reference in
onTest
scenario - Added check for
req.headers
inInjectData.getData
in case the headers object does not exist on the request.
- Add
InjectData._disableInjection
flag to disable payload injection so it can be manually inserted by different SSR techniques.
- Override
meteorhacks:inject-data
if both packages are present, for greater backwards compatibility
- Add check to ensure the injection middleware always runs last
- Increase compatibility with other packages using
WebApp.connectHandlers.use
, includingreactrouter:react-router-ssr
- Released as
staringatlights:inject-data
- Update for Meteor 1.4.2+
2016-Feb-19
- Override individual res objects instead of overriding the prototype. This is a fix to support Meteor 1.3, which gave us the gzipped version of the html.
- Because of that we had to change the API a bit on the server. See:
res.pushData('key', {data: 'here'})
=>InjectData.pushData(res, 'key', {data: 'here'})
res.getData('key')
=>InjectData.getData(res, 'key')
- Use
EJSON.parse()
. See: #4
- Add support for SSR by prepending the html on top of the first script tag
- Add IE8 Compatibility