Skip to content

fix: rework format for maxLength, minLength#67

Merged
alexander-akait merged 2 commits into
webpack:masterfrom
vankop:issue-65
Oct 14, 2019
Merged

fix: rework format for maxLength, minLength#67
alexander-akait merged 2 commits into
webpack:masterfrom
vankop:issue-65

Conversation

@vankop

@vankop vankop commented Oct 13, 2019

Copy link
Copy Markdown
Member

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

#65

Breaking Changes

no

Additional Info

Add support for maxLength === 0

@codecov

codecov Bot commented Oct 13, 2019

Copy link
Copy Markdown

Codecov Report

Merging #67 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   98.57%   98.58%   +0.01%     
==========================================
  Files           5        5              
  Lines         561      567       +6     
  Branches      252      255       +3     
==========================================
+ Hits          553      559       +6     
  Misses          8        8
Impacted Files Coverage Δ
src/ValidationError.js 98.19% <100%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7fc8069...3da83ec. Read the comment docs.

"Invalid configuration object. Object has been initialised using a configuration object that does not match the API schema.
- configuration.optimization.runtimeChunk should be one of these:
boolean | \\"single\\" | \\"multiple\\" | object { name? }
boolean | \\"single\\" | \\"multiple\\" | empty string | object { name? }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty string, regression?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean? it is by design, when maxLength: 0

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I understood what you mean, I will check

@vankop vankop Oct 14, 2019

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evilebottnawi I have updated anyOf in configuration.optimization.runtimeChunk with

{
 "type": "string",
 "maxLength": 0
}

So all works as expected

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants