Observed since 20 Oct, 22:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
0x TS utils
Utils to be shared across 0x projects and packages
yarn add @0x/utils
If your project is in TypeScript, add the following to your tsconfig.json:
"compilerOptions": {
"typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}
import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0x/utils';
If you are still seeing TS type errors complaining about missing DOM types such as Response:
error TS2304: Cannot find name 'Response'.
Then you need to explicitly add the dom lib to your compiler options in tsconfig.json. The dom library is included by default, but customizing the lib option can cause it to be dropped.
"compilerOptions": {
"lib": [..., "dom"],
We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.
Please read our contribution guidelines before getting started.
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
yarn config set workspaces-experimental true
Then install dependencies
yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
PKG=@0x/utils yarn build
Or continuously rebuild on change:
PKG=@0x/utils yarn watch
yarn clean
yarn lint
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 7.0.0Registry latest | 18 Aug 2022 | 27 | |
| 6.5.3 | 16 Mar 2022 | 27 | |
| 6.5.2 | 16 Mar 2022 | 27 | |
| 6.5.1 | 26 Feb 2022 | 27 | |
| 6.5.0 | 19 Jan 2022 | 27 | |
| 6.4.4 | 25 Aug 2021 | 27 | |
| 6.4.3 | 28 Apr 2021 | 27 | |
| 6.4.2 | 26 Apr 2021 | 27 | |
| 6.4.1 | 26 Apr 2021 | 27 | |
| 6.4.0 | 26 Apr 2021 | 27 | |
| 6.3.0 | 6 Apr 2021 | 27 | |
| 6.2.1 | 24 Mar 2021 | 27 | |
| 6.2.0 | 5 Jan 2021 | 27 | |
| 6.1.1 | 2 Dec 2020 | 27 | |
| 6.1.0 | 29 Oct 2020 | 27 | |
| 6.0.0 | 29 Oct 2020 | 27 | |
| 5.6.4 | 28 Oct 2020 | 27 | |
| 5.6.3 | 21 Oct 2020 | 27 | |
| 5.6.2 | 21 Oct 2020 | 27 | |
| 5.6.1 | 20 Oct 2020 | 27 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:32 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ba3c7b840d921def2042d51a3530dfceabd0ea19290e15f170e5e53cbba325de