This repository was archived by the owner on Jun 23, 2019. It is now read-only.
Update minim to the latest version 🚀 #38
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The devDependency minim was updated from
0.20.7to0.21.0.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Release Notes for 0.21.0
Breaking
Minim no longer supports importing files directly from the minim package.
Importing the JSON 0.6 serialiser via
require('minim/lib/serialisers/json-0.6')is not supported, it is nowrecommended to import
JSON06Serialiserand other APIs from minim directly.flatMapinArraySliceno longer removes empty items. InsteadflatMapisaligned with
Array.flatMapwhich first maps each element using a mapping function, then flattens the
result into a new array.
Existing
flatMapbehaviour is now available under the methodcompactMap.Enhancements
Object Element can now be created with an array of member elements.
You can now create an element from an ArraySlice or ObjectSlice, for example,
passing the result of a
filteroperation into a new element.Adds
compactMapfunctionality to Array and Object elements allowing you toreturns an array containing the truthy results of calling the given
transformation with each element of this sequence.
Added
flatMaptoArrayElement.Bug Fixes
The default content value of an element is undefined. Whereas before the
default value was
null.Setting the
contentproperty on an Element now behaves the same as passingcontent in to the constructor. For example, the following two elements are
identical:
Passing
[1]to anArrayElementconstructor would produce an array ofnumber elements, whereas setting the content to
[1]resulted in setting thecontent to be an array of non-elements which is invalid.
The serialisation of the
variableattribute in the JSON 0.6 serialisationis updated to reflect API Elements 1.0. The
variableattribute is nowpresent on a member element instead of the key of a member element.
Empty arrays are no longer serialised in JSON 06 Serialiser.
Commits
The new version differs by 34 commits.
73170cachore: Release 0.21.0f7600ecMerge pull request #200 from refractproject/kylef/construct-slicecf339dafeat: Support creating elements from slicesb1a28e2Merge pull request #196 from refractproject/kylef/empty-contentfa0b204fix(json-0.6): Don't serialise empty arrays unless specific types1435637Merge pull request #198 from refractproject/kylef/mdn-flatMapde4a74efeat: AddedflatMapto array element and aligned ArraySlice behaviour6ba4d8fMerge pull request #175 from abacaphiliac/flatmapdcbed82Merge pull request #190 from refractproject/kylef/flatMapd164d2crefactor: Rename flatMap to compactMap87d98c1feat: Add compactMap to Array and Object element4792815Merge pull request #197 from refractproject/kylef/variable8777631fix(json-0.6): Fixvariableproperty serialisationba81ddeMerge pull request #194 from refractproject/pksunkara/enum47e09a2Merge pull request #195 from refractproject/kylef/set-contentThere are 34 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴