Skip to content

Releases: js-dxtools/webpack-validator

v2.0.1

20 May 20:38
Compare
Choose a tag to compare

<a name"2.0.1">

2.0.1 (2016-05-20)

Bug Fixes

  • output.library should also allow array of strings (#95) (d16c4179, closes #91)

v2.0.0

20 May 18:38
Compare
Choose a tag to compare

<a name"2.0.0">

2.0.0 (2016-05-20)

Features

  • add "rules" concept
  • resolve.root name-clash detection with node_modules package names (closes #79)
  • file paths are now checked for existence on disk

Breaking Changes

  • validate() now takes only two arguments: validate(yourConfig, optionsObject). The schema which could be passed as second argument can now be supplied via property schema on the options object which is now the second argument. The now preferred way to supply extra properties to the schema is supplying a a Joi.object via the options property schemaExtension, that just contains the properties you want to add (see README under "Customizing").
  • The schema used by this library is not exported anymore, as we now dynamically create the schema by parameterizing it with "rules" which toggle / modify parts of the schema (have a look at src/index.js to learn more).
    (30e02407)

Upgrade Guide

You only need to update your code if you customized the schema and/or specified options. If you only used webpack-validator with it's default configuration (validate(yourConfig)), you don't need to change anything.

Otherwise check out this diff to get the gist of the changes:

const validate = require('webpack-validator')
- const schema = require('webpack-validator').schema // schema is not exported anymore

- const Joi = require('joi') // relied on npm3 putting this dep into your top level node_modules
+ const Joi = require('webpack-validator').Joi // now exported by this library


// Instead of "concatting" the internal schema with your extension schema by yourself, 
// you now just supply the extension schema 
- const yourSchema = schema.concat(Joi.object({
-   eslint: Joi.any()
- }))
+ const yourSchemaExtension = Joi.object({
+  eslint: Joi.any()
+ })

const config = { /* ... your webpack config */ }

// Instead of supplying the whole concatted schema as your second argument 
// and additional options as your third argument, 
// you now supply the schemaExtension *and* additional options on the second argument.
- module.exports = validate(config, yourSchema, { quiet: true })
+ module.exports = validate(config, { schemaExtension: yourSchemaExtension, quiet: true })

v1.9.0

20 May 14:57
Compare
Choose a tag to compare

<a name"1.9.0">

1.9.0 (2016-05-20)

Features

v1.8.2

20 May 14:55
Compare
Choose a tag to compare

<a name"1.8.2">

1.8.2 (2016-05-20)

Bug Fixes

  • output.publicPath validation is too strict (#93) (ac24d6ed, closes #88)

v1.8.1

20 May 14:52
Compare
Choose a tag to compare

<a name"1.8.1">

1.8.1 (2016-05-20)

Bug Fixes

v1.8.0

10 May 16:01
Compare
Choose a tag to compare

<a name"1.8.0">

1.8.0 (2016-05-10)

Features

v1.7.0

09 May 15:37
Compare
Choose a tag to compare

<a name"1.7.0">

1.7.0 (2016-05-09)

Features

  • webpack-dev-server: Support object for historyApiFallback (4e3806e2, closes #82)

v1.6.0

08 May 08:46
Compare
Choose a tag to compare

<a name"1.6.0">

1.6.0 (2016-05-08)

Features

  • webpack-dev-server: Support stats presets (16eca478)

v1.5.0

05 May 12:51
Compare
Choose a tag to compare

<a name"1.5.0">

1.5.0 (2016-05-05)

Features

  • webpack-dev-server: Validate webpack-dev-server specific fields (#75) (724639da, closes #21)

v1.4.0

02 May 13:29
Compare
Choose a tag to compare

<a name"1.4.0">

1.4.0 (2016-05-02)

Features