Skip to content

Commit

Permalink
Merge pull request #508 from nygardk/v5
Browse files Browse the repository at this point in the history
v5
  • Loading branch information
nygardk committed Nov 18, 2023
2 parents 4548608 + 043faa3 commit 8dadce6
Show file tree
Hide file tree
Showing 52 changed files with 8,219 additions and 4,675 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-fireants-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": major
---

Removed the `quote` prop from `FacebookShareButton` as it has been deprecated by Meta. See https://developers.facebook.com/support/bugs/734680371318112/?comment_id=743056360480513.
5 changes: 5 additions & 0 deletions .changeset/brave-chicken-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Added `GabShareButton` and `GabIcon` to share on [gab.com](https://gab.com). Originally implemented [here](https://github.com/nygardk/react-share/pull/425).
5 changes: 5 additions & 0 deletions .changeset/chilly-points-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": patch
---

Fix `HatenaShareCount` to show also `0`. Originally fixed [here](https://github.com/nygardk/react-share/pull/429).
5 changes: 5 additions & 0 deletions .changeset/chilly-wolves-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Added `XIcon`.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/fair-maps-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": major
---

Removed default `aria-label` prop from `ShareButtons`. Before it defaulted to the name of the "network name" (e.g. "facebook" for Facebook). Issue explained [here](https://github.com/nygardk/react-share/issues/397).
5 changes: 5 additions & 0 deletions .changeset/fair-walls-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": major
---

Compilation target is now ES2017 instead of ES5. The distributed files are built with Vite instead of TypeScript compiler.
5 changes: 5 additions & 0 deletions .changeset/late-chairs-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": patch
---

Fixed `createIcon` defaultProps warning with React 18.
5 changes: 5 additions & 0 deletions .changeset/many-lizards-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Share counts are now created as function components instead of class components.
5 changes: 5 additions & 0 deletions .changeset/poor-lizards-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Added `pinId` prop for `PinterestShareButton`.
5 changes: 5 additions & 0 deletions .changeset/stale-peas-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": major
---

Dropped support for React 16.
5 changes: 5 additions & 0 deletions .changeset/thirty-candles-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-share": minor
---

Share buttons are now created as function components instead of class components.
15 changes: 15 additions & 0 deletions .github/actions/npm-install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: npm install

description: Install NPM dependencies

runs:
using: composite
steps:
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'

- name: Install dependencies
shell: bash
run: npm ci
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "CI"

on:
pull_request:
branches:
- "**"

env:
FORCE_COLOR: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-install
- run: npm run lint

check-types:
name: Check types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-install
- run: npm run check-types

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/npm-install
- run: npm run build

27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release

on:
push:
branches:
- master
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: ./.github/actions/npm-install

- name: Create Release PR or publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: npm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.DS_Store
node_modules/
lib/
es/
dist/
demo/
*.log
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.9.0
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"files.exclude": {
"**/node_modules": true
},
"search.exclude": {
"lib": true,
"**/node_modules": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"[typescriptreact]": {
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.validate": ["typescript", "typescriptreact"],
"stylelint.validate": ["typescript", "typescriptreact"]
}
93 changes: 47 additions & 46 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions demo/Demo.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
font-family: 'Arial', sans-serif;
font-family: "Arial", sans-serif;
background-color: white;
padding: 20px;
}
Expand Down Expand Up @@ -30,6 +30,6 @@ body {
}

.Demo__some-network__custom-icon {
width:32px;
height:32px;
width: 32px;
height: 32px;
}
Loading

0 comments on commit 8dadce6

Please sign in to comment.