Skip to content

Commit

Permalink
Update changelog for 9.15.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker committed Nov 20, 2015
1 parent 25912a0 commit 2b52263
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 20 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,21 @@
# Changelog


## 9.15.0

- Fix bug where history would not completely flush all transactions,
causing store handlers to fire twice.
- `start()` must be invoked

### Potentially breaking changes

In a previous update, we made a change that allowed instances of
microcosm to work without invoking `start()`. This update reverts that
decision. Without intentionaly invoking start, transactional state
becomes hard to predict. This is potentially a breaking change; for
those upgrading, verify that you are calling `start` before using a
microcosm.

## 9.14.0

### Noticeable Changes
Expand Down
39 changes: 21 additions & 18 deletions examples/server/config/webpack.config.js
@@ -1,6 +1,7 @@
var path = require('path')
var webpack = require('webpack')
var url = require('url')
var isDev = process.env.NODE_ENV !== 'production'

/**
* A custom logger. When Webpack compiles, it will output
Expand Down Expand Up @@ -34,7 +35,7 @@ module.exports = function (server) {
var config = {
context: root,

devtool: 'inline-source-map',
devtool: isDev ? 'inline-source-map' : 'source-map',

entry: {
'chatbot' : './chatbot/browser',
Expand All @@ -50,8 +51,9 @@ module.exports = function (server) {

plugins: [
Logger,
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV)
})
],

resolve: {
Expand All @@ -61,14 +63,19 @@ module.exports = function (server) {
module: {
loaders: [{
test : /\.jsx*$/,
exclude : /node_modules/,
loader : 'babel',
query : {
optional : ['runtime']
// optional : ['runtime']
plugins: isDev ? [ 'babel-plugin-unassert' ] : []
}
}]
},

node: {
Buffer : false,
process : false
},

devServer: {
contentBase: root,
port: port,
Expand All @@ -78,19 +85,15 @@ module.exports = function (server) {
}


/**
* Inject the dev server hot module replacement into
* each entry point
*/
config.entry = Object.keys(config.entry).reduce(function (entries, next) {
entries[next] = [
'webpack-dev-server/client?' + location,
'webpack/hot/only-dev-server',
config.entry[next]
]

return entries
}, {})
// Inject the dev server hot module replacement into
// each entry point on development
if (!isDev) {
// Otherwise enable production settings
config.plugins.push(
new webpack.optimize.UglifyJsPlugin(),
new webpack.optimize.OccurenceOrderPlugin()
)
}


return config
Expand Down
2 changes: 1 addition & 1 deletion examples/simple-svg/app/simple-svg.js
@@ -1,5 +1,5 @@
import Circle from './stores/Circle'
import Microcosm from '../../../src/Microcosm'
import Microcosm from '../../../dist/Microcosm'

export default class SimpleSVG extends Microcosm {

Expand Down
2 changes: 1 addition & 1 deletion src/Microcosm.js
Expand Up @@ -212,7 +212,7 @@ Microcosm.prototype = {
* Starts an application:
* 1. Run through all plugins, it will terminate if any fail
* 2. Execute the provided callback, passing along any errors
* genrateed if installing plugins fails.
* generated if installing plugins fails.
*/
start(callback) {
this.push(lifecycle.willStart)
Expand Down

0 comments on commit 2b52263

Please sign in to comment.