Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 482 Bytes

UPGRADE.md

File metadata and controls

37 lines (22 loc) · 482 Bytes

Upgrade guide

Upgrading from version 2.x.x to 3.x.x

Version 2.x.x

CommonJS

const anonymus = require("anonymus");

anonymus.create(10);

console.log(anonymus.version); // => "2.x.x"

Version 3.x.x

CommonJS

const { create, version } = require("anonymus");

create(10);

console.log(version); // => "3.x.x"

✨ New ES-Module

import { create, version } from "anonymus";

create(10);

console.log(version); // => "3.x.x"