Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove deep requires #426

Merged
merged 2 commits into from
Apr 29, 2020
Merged

feat: remove deep requires #426

merged 2 commits into from
Apr 29, 2020

Commits on Apr 29, 2020

  1. feat: remove deep requires

    BREAKING CHANGE: Deep requiring specific algorithms of this library like
    require('uuid/v4'), which has been deprecated in uuid@7, is no longer
    supported.
    
    Instead use the named exports that this module exports.
    
    For ECMAScript Modules (ESM):
    
    ```javascript
    import { v4 as uuidv4 } from 'uuid';
    uuidv4();
    ```
    
    For CommonJS:
    
    ```javascript
    const { v4: uuidv4 } = require('uuid');
    uuidv4();
    ```
    
    No longer supported is this:
    
    ```javascript
    const uuidv4 = require('uuid/v4'); // <== NO LONGER SUPPORTED!
    uuidv4();
    ```
    ctavan committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    fc84c39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ab07f75 View commit details
    Browse the repository at this point in the history