Skip to content

Commit 11f480f

Browse files
authored
Update to v4.9.0 (#7)
* Update release instructions * Fix broken codegen script * Update to 4.9.0
1 parent c78be58 commit 11f480f

26 files changed

+9191
-118
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ PureScript bindings for [`react-icons`](https://react-icons.github.io/react-icon
44

55
> Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that your project is using.
66
7-
Tested with react-icons `v4.7.1`.
7+
Tested with react-icons `v4.9.0`.
88

99
## Installation
1010

1111
```shell
12-
npm install --save react-icons@4.7.1
12+
npm install --save react-icons@4.9.0
1313
spago install react-icons
1414
```
1515

@@ -58,3 +58,7 @@ All icons and a search can be found on the [`react-icons` project website](https
5858
- [VS Code Icons](https://github.com/microsoft/vscode-codicons) ([CC BY 4.0](https://creativecommons.org/licenses/by/4.0/))
5959
- [Weather Icons](https://erikflowers.github.io/weather-icons/) ([SIL OFL 1.1](http://scripts.sil.org/OFL))
6060
- [css.gg](https://github.com/astrit/css.gg) ([MIT](https://opensource.org/licenses/MIT))
61+
62+
## Development
63+
64+
[Release and update a new version](./RELEASE.md)

RELEASE.md

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Release
22

3-
* Commit all changes
4-
* `spago bump-version patch --no-dry-run`
5-
* `git push --follow-tags`
6-
* `pulp login`
7-
* `pulp publish`
3+
## Update
4+
5+
- Change react-icons version `sed -i 's/4.7.1/4.9.0/g' README.md package.json`
6+
- `npm install`
7+
- `npm run codegen`
8+
- `npm run build`
9+
10+
## Release new version
11+
12+
- Commit all changes
13+
- `spago bump-version patch --no-dry-run`
14+
- `git push --follow-tags`
15+
- `pulp login`
16+
- `pulp publish`

codegen/codegen.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ command -v "sort" >/dev/null 2>&1 || {
1717

1818
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
1919
libDir="$dir/../node_modules/react-icons"
20-
allLibsFile="$libDir/all.d.ts"
2120

2221
[ -d "$libDir" ] || {
2322
echo "Error: react-icons dependency not installed" && exit 1
@@ -42,7 +41,8 @@ toJavaScript() {
4241
outputJs+="\n"
4342
}
4443

45-
libs=$(sed -nr "s/export \* from '\.\/([a-z0-9]+)';/\1/p" "$allLibsFile" | sort -u)
44+
libs=$(ls -1p "$libDir" | grep / | sed 's/^\(.*\)\//\1/' | sort -u)
45+
libs=${libs[*]//lib/}
4646

4747
for lib in $libs; do
4848
echo "Generating $lib icons ..."

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"codegen": "codegen/codegen.sh"
1616
},
1717
"dependencies": {
18-
"react-icons": "^4.7.1"
18+
"react-icons": "^4.9.0"
1919
},
2020
"devDependencies": {
2121
"react": "^18.2.0",

packages.dhall

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230216/packages.dhall
3-
sha256:8d4dc43ba920e029cfc39c122201ed821b37ad1c22bc115ab283bd9fab949eba
2+
https://github.com/purescript/package-sets/releases/download/psc-0.15.8-20230616/packages.dhall
3+
sha256:d15d99463bdce08f78a80bd8cde1fadb2ce1b490eb53924adf44215713f1a1a5
44

55
in upstream

src/React/Icons/Bi.js

+57
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)