Skip to content

Commit eb10915

Browse files
committed
chore(deps): Update dependency rollup to v3.
1 parent dad9080 commit eb10915

10 files changed

+1153
-138
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,58 +5,66 @@ on:
55
- master
66
jobs:
77
build-deploy:
8-
runs-on: ubuntu-18.04
8+
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
12-
with:
13-
node-version: 14
14-
15-
- run: npm install
16-
- run: npm run build
17-
18-
- run: npm i markdown-to-html-cli -g
19-
- run: markdown-to-html --output dist/index.html
20-
21-
- name: Deploy
22-
uses: peaceiris/actions-gh-pages@v3
23-
with:
24-
github_token: ${{ secrets.GITHUB_TOKEN }}
25-
publish_dir: ./dist
26-
27-
- name: Create Tag
28-
id: create_tag
29-
uses: jaywcjlove/[email protected]
30-
with:
31-
token: ${{ secrets.GITHUB_TOKEN }}
32-
package-path: ./package.json
33-
34-
- name: Generate Changelog
35-
id: changelog
36-
uses: jaywcjlove/[email protected]
37-
with:
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
head-ref: ${{steps.create_tag.outputs.version}}
40-
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
41-
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
42-
43-
- name: Create Release
44-
uses: ncipollo/release-action@v1
45-
if: steps.create_tag.outputs.successful
46-
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
48-
name: ${{ steps.create_tag.outputs.version }}
49-
tag: ${{ steps.create_tag.outputs.version }}
50-
body: |
51-
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/copy-to-clipboard@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
52-
53-
```bash
54-
npm i @uiw/copy-to-clipboard@${{steps.create_tag.outputs.versionNumber}}
55-
```
56-
57-
${{ steps.changelog.outputs.compareurl }}
58-
59-
${{ steps.changelog.outputs.changelog }}
60-
61-
- run: npm install @jsdevtools/npm-publish -g
62-
- run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 16
14+
registry-url: 'https://registry.npmjs.org'
15+
16+
- run: npm install
17+
- run: npm run build
18+
19+
- run: npm i markdown-to-html-cli -g
20+
- run: markdown-to-html --output dist/index.html
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./dist
27+
28+
- name: Create Tag
29+
id: create_tag
30+
uses: jaywcjlove/create-tag-action@main
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
package-path: ./package.json
34+
35+
- name: Generate Changelog
36+
id: changelog
37+
uses: jaywcjlove/changelog-generator@main
38+
with:
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
head-ref: ${{steps.create_tag.outputs.version}}
41+
filter-author: (jaywcjlove|小弟调调™|dependabot\[bot\]|Renovate Bot)
42+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
43+
44+
- name: Create Release
45+
uses: ncipollo/release-action@v1
46+
if: steps.create_tag.outputs.successful
47+
with:
48+
token: ${{ secrets.GITHUB_TOKEN }}
49+
name: ${{ steps.create_tag.outputs.version }}
50+
tag: ${{ steps.create_tag.outputs.version }}
51+
body: |
52+
[![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/copy-to-clipboard@${{steps.create_tag.outputs.versionNumber}}/file/README.md)
53+
54+
```bash
55+
npm i @uiw/copy-to-clipboard@${{steps.create_tag.outputs.versionNumber}}
56+
```
57+
58+
${{ steps.changelog.outputs.compareurl }}
59+
60+
${{ steps.changelog.outputs.changelog }}
61+
62+
# - run: npm install @jsdevtools/npm-publish -g
63+
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json
64+
65+
- name: 📦 @uiw/copy-to-clipboard publish to NPM
66+
run: npm publish
67+
continue-on-error: true
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
70+

dist/copy-to-clipboard.cjs.js

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
1-
/*!
2-
* @uiw/copy-to-clipboard v1.0.11
3-
* Copy to clipboard.
1+
/**!
2+
* @uiw/copy-to-clipboard v1.0.12
3+
* Copy to clipboard.
44
*
5-
* Copyright (c) 2021 Kenny Wang
6-
* https://github.com/uiwjs/copy-to-clipboard.git
5+
* Copyright (c) 2023 Kenny Wang
6+
* https://github.com/uiwjs/copy-to-clipboard.git
77
*
8-
* Licensed under the MIT license.
8+
* @website: https://github.com/uiwjs/copy-to-clipboard.git
9+
10+
* Licensed under the MIT license
911
*/
1012

1113
'use strict';
1214

15+
/**
16+
* *** This styling is an extra step which is likely not required. ***
17+
* https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard
18+
*
19+
* Why is it here? To ensure:
20+
*
21+
* 1. the element is able to have focus and selection.
22+
* 2. if element was to flash render it has minimal visual impact.
23+
* 3. less flakyness with selection and copying which **might** occur if
24+
* the textarea element is not visible.
25+
*
26+
* The likelihood is the element won't even render, not even a flash,
27+
* so some of these are just precautions. However in IE the element
28+
* is visible whilst the popup box asking the user for permission for
29+
* the web page to copy to the clipboard.
30+
*
31+
* Place in top-left corner of screen regardless of scroll position.
32+
*
33+
* @typedef CopyTextToClipboard
34+
* @property {(text: string, method?: (isCopy: boolean) => void) => void} void
35+
* @returns {void}
36+
*
37+
* @param {string} text
38+
* @param {CopyTextToClipboard} cb
39+
*/
1340
function copyTextToClipboard(text, cb) {
14-
//
15-
// *** This styling is an extra step which is likely not required. ***
16-
//
17-
// https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard
18-
//
19-
// Why is it here? To ensure:
20-
// 1. the element is able to have focus and selection.
21-
// 2. if element was to flash render it has minimal visual impact.
22-
// 3. less flakyness with selection and copying which **might** occur if
23-
// the textarea element is not visible.
24-
//
25-
// The likelihood is the element won't even render, not even a flash,
26-
// so some of these are just precautions. However in IE the element
27-
// is visible whilst the popup box asking the user for permission for
28-
// the web page to copy to the clipboard.
29-
//
30-
// Place in top-left corner of screen regardless of scroll position.
3141
const el = document.createElement('textarea');
3242
el.value = text;
3343
el.setAttribute('readonly', '');

dist/copy-to-clipboard.esm.js

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,41 @@
1-
/*!
2-
* @uiw/copy-to-clipboard v1.0.11
3-
* Copy to clipboard.
1+
/**!
2+
* @uiw/copy-to-clipboard v1.0.12
3+
* Copy to clipboard.
44
*
5-
* Copyright (c) 2021 Kenny Wang
6-
* https://github.com/uiwjs/copy-to-clipboard.git
5+
* Copyright (c) 2023 Kenny Wang
6+
* https://github.com/uiwjs/copy-to-clipboard.git
77
*
8-
* Licensed under the MIT license.
8+
* @website: https://github.com/uiwjs/copy-to-clipboard.git
9+
10+
* Licensed under the MIT license
911
*/
1012

13+
/**
14+
* *** This styling is an extra step which is likely not required. ***
15+
* https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard
16+
*
17+
* Why is it here? To ensure:
18+
*
19+
* 1. the element is able to have focus and selection.
20+
* 2. if element was to flash render it has minimal visual impact.
21+
* 3. less flakyness with selection and copying which **might** occur if
22+
* the textarea element is not visible.
23+
*
24+
* The likelihood is the element won't even render, not even a flash,
25+
* so some of these are just precautions. However in IE the element
26+
* is visible whilst the popup box asking the user for permission for
27+
* the web page to copy to the clipboard.
28+
*
29+
* Place in top-left corner of screen regardless of scroll position.
30+
*
31+
* @typedef CopyTextToClipboard
32+
* @property {(text: string, method?: (isCopy: boolean) => void) => void} void
33+
* @returns {void}
34+
*
35+
* @param {string} text
36+
* @param {CopyTextToClipboard} cb
37+
*/
1138
function copyTextToClipboard(text, cb) {
12-
//
13-
// *** This styling is an extra step which is likely not required. ***
14-
//
15-
// https://github.com/w3c/clipboard-apis/blob/master/explainer.adoc#writing-to-the-clipboard
16-
//
17-
// Why is it here? To ensure:
18-
// 1. the element is able to have focus and selection.
19-
// 2. if element was to flash render it has minimal visual impact.
20-
// 3. less flakyness with selection and copying which **might** occur if
21-
// the textarea element is not visible.
22-
//
23-
// The likelihood is the element won't even render, not even a flash,
24-
// so some of these are just precautions. However in IE the element
25-
// is visible whilst the popup box asking the user for permission for
26-
// the web page to copy to the clipboard.
27-
//
28-
// Place in top-left corner of screen regardless of scroll position.
2939
const el = document.createElement('textarea');
3040
el.value = text;
3141
el.setAttribute('readonly', '');

dist/copy-to-clipboard.umd.js

Lines changed: 35 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copy-to-clipboard.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/copy-to-clipboard.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)