From c59ec2cb9aec0d95b71b21e58b19d00ad2189829 Mon Sep 17 00:00:00 2001 From: Ayc0 Date: Sat, 7 Mar 2020 01:56:16 -0500 Subject: [PATCH] v2.3.1 --- CHANGELOG.md | 5 +++++ packages/react-only/package.json | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 43b8904..50805be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,15 @@ - remove polyfill for matchMedia **minor breaking change** - add `useQuery` - drop `media` in `useOnly` **BREAKING CHANGE** +- use Node 13 `exports` field
See detailed changelog +#### 2.3.1 + +- Use Node 13 conditional exports: https://nodejs.org/api/esm.html#esm_conditional_exports + #### 2.3.0 - remove polyfill for matchMedia (it should be define by the users) **minor breaking change** diff --git a/packages/react-only/package.json b/packages/react-only/package.json index 15cb1f5..ad65068 100644 --- a/packages/react-only/package.json +++ b/packages/react-only/package.json @@ -1,13 +1,19 @@ { "name": "react-only", - "version": "2.3.0", + "version": "2.3.1", "description": "🔍 displays some contents for a specific screen size", "source": "src/index.ts", + "sideEffects": false, "main": "lib/react-only.js", "umd:main": "lib/react-only.umd.js", "module": "lib/react-only.modern.js", "types": "lib/index.d.ts", - "sideEffects": false, + "exports": { + "require": "./dist/react-only.js", + "import": "./dist/react-only.modern.js", + "browser": "./dist/react-only.modern.js", + "umd": "./dist/react-only.umd.js" + }, "repository": "git@github.com:Ayc0/react-only.git", "keywords": [ "adaptive",