Skip to content

sku@12.6.0

Choose a tag to compare

@seek-oss-ci seek-oss-ci released this 15 May 03:32
· 524 commits to master since this release
77e4572

Minor Changes

  • Add support for removing assertion functions named invariant and assertions from the tiny-invariant library, a lightweight alternative to assert (#966)

    EXAMPLE USAGE:

    import React from 'react';
    import invariant from 'tiny-invariant';
    
    export const Rating = ({ rating }: { rating: number }) => {
      invariant(rating >= 0 && rating <= 5, 'Rating must be between 0 and 5');
    
      return <div>...</div>;
    };