Skip to content

Commit

Permalink
chore: update deps, prep v10 release
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Mar 19, 2024
1 parent 121c86d commit 0f5715e
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 48 deletions.
4 changes: 4 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"require": "tsx"
}
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
## Change Log

### v10.0.0-beta.1
### v10.0.0

- Package with rollup
- Adds ESM support
- Removes UMD support
- Removes UMD support - CJS support still exists
- Still need UMD support? Stick with v9.0.1
- Upgraded all dependencies to latest
- Bumps minimum node version to 14 (dependencies are all at 14 anyways)

### v9.0.1

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2020 Contra <yo@contra.io>
Copyright (c) 2024 Contra <yo@contra.io>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Example = () => (

To make things more idiomatic to react, you can use camel-cased shorthands to construct media queries.

For a list of all possible shorthands and value types see https://github.com/contra/react-responsive/blob/master/src/mediaQuery.ts#L9.
For a list of all possible shorthands and value types see https://github.com/yocontra/react-responsive/blob/master/src/mediaQuery.ts#L9.

Any numbers given as shorthand will be expanded to px (`1234` will become `'1234px'`).

Expand Down Expand Up @@ -174,8 +174,8 @@ import App from './App'
If you use next.js, structure your import like this to disable server-side rendering for components that use this library:
```js
import dynamic from "next/dynamic"
const MediaQuery = dynamic(() => import("react-responsive"), {
import dynamic from 'next/dynamic'
const MediaQuery = dynamic(() => import('react-responsive'), {
ssr: false
})
```
Expand Down
2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0f5715e

Please sign in to comment.