Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.19.2 #1597

Merged
merged 48 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e477621
Resolve editor.destroy() Problem (#1404)
robonetphy Nov 6, 2020
b134fcc
static getter added to mergeble method (#1422)
robonetphy Nov 10, 2020
113e895
fix(interaction): problem with entering to Editor.js by Tab key (#1397)
hata6502 Nov 19, 2020
bfd0ea1
Sanitize pasted block data (#1430)
hata6502 Nov 21, 2020
e319e04
fix(caret): right-arrow on last non-default block (#1416)
neSpecc Nov 21, 2020
f440a60
Replace typeofs (#1434)
khaydarov Nov 21, 2020
585e01b
Basic initialisation test for Editor.js (#1410)
ranemihir Nov 21, 2020
bbbd637
Change shortcut listener binding (#1431)
hata6502 Nov 21, 2020
59a3034
Remove project id and Correct the command name. (#1452)
ranemihir Dec 2, 2020
c1f73e7
package version updated
neSpecc Dec 8, 2020
36d5a67
fix eslint
neSpecc Dec 8, 2020
83d8fe7
fix license badge in README.md (#1534)
nikmel2803 Feb 11, 2021
c0ff646
chore(example): the new example page for testing multiple instances
neSpecc Feb 17, 2021
7c8778a
Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js…
hata6502 Jan 25, 2021
c106819
the long line splitted for several small ones, some more docs added
neSpecc Feb 17, 2021
fbd4bd9
Feature: remove bundles (#1541)
talyguryn Feb 18, 2021
4c7cad1
Remove force options in Caret.navigateNext() and Caret.navigatePrevio…
hata6502 Feb 18, 2021
78478ac
chore(tests): testcases.md started (#1487)
neSpecc Feb 18, 2021
4ddba92
chore(types): a generic type for tool config added (#1517)
hata6502 Feb 18, 2021
156a687
Bump ini from 1.3.5 to 1.3.8 (#1544)
dependabot[bot] Feb 18, 2021
50cbc4d
Remove unnecessary window promise (#1488)
ranemihir Feb 18, 2021
51b1fdc
Hotfix: sanitizer config type definition (#1491)
phanletrunghieu Feb 18, 2021
21adb61
Scroll Window with block selection (#1457)
hata6502 Feb 18, 2021
143a539
Fix unstable block cut process (#1485)
hata6502 Feb 18, 2021
aa8675d
Toolbar toggler API (#1466)
robonetphy Feb 18, 2021
527ff4e
Add url length validation to Link at inline-tool. (#1476)
kaaaaaaaaaaai Feb 18, 2021
3f39cb7
Set caret when block data pasted (#1470)
hata6502 Feb 18, 2021
5cbeabd
Update build commands (#1545)
talyguryn Feb 18, 2021
8e4b34a
Feature: action for publishing package update (#1546)
talyguryn Feb 19, 2021
c4a57c1
Feature: create a release draft workflow (#1555)
talyguryn Feb 22, 2021
cd6378c
Feature: add bump version action (#1561)
talyguryn Feb 24, 2021
254a94e
Bump version (#1562)
github-actions[bot] Feb 24, 2021
a229cc5
Update releases.md (#1567)
talyguryn Feb 25, 2021
8104585
Don't except the first selected block (#1550)
hata6502 Feb 26, 2021
ae52d61
Update bump-version-on-merge-next.yml (#1569)
talyguryn Feb 26, 2021
970d64e
Bump version (#1570)
github-actions[bot] Feb 26, 2021
1772edf
Update releases.md docs for update version workflow (#1571)
talyguryn Feb 27, 2021
e5fe93e
Make passed config immutable (#1553)
hata6502 Feb 27, 2021
3bf30f0
Add generics to OutputBlockData (#1326)
hata6502 Feb 27, 2021
2759b25
refactoring(modules): the listeners module now a util (#1572)
neSpecc Mar 2, 2021
a67e699
Fix SanitizerConfig type definition (#1456)
hata6502 Mar 2, 2021
0d559a5
Fix typo (#1581)
sjquant Mar 3, 2021
2a2a6f1
Bump version (#1580)
github-actions[bot] Mar 4, 2021
2f5da52
refactoring(modules): shortcuts module is util now (#1578)
gohabereg Mar 4, 2021
c4ebdee
Do not use bubbling on blockManagers' listener (#1563)
khaydarov Mar 12, 2021
d945d4c
refactoring(modules): Events module is util now (#1582)
khaydarov Mar 15, 2021
1e1b06d
chore(release): 2.19.2 (#1583)
github-actions[bot] Mar 15, 2021
166ded6
Merge branch 'master' into next
neSpecc Mar 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/bump-version-on-merge-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Bump version on merge

on:
pull_request:
branches:
- next
types: [closed]

jobs:
# If pull request was merged then we should check for a package version update
check-for-no-version-changing:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2
with:
fetch-depth: 0

# Get package new version name
- name: Get package info
id: packageNew
uses: codex-team/action-nodejs-package-info@v1

# Checkout to the base commit before merge
- name: Checkout to the base commit before merge
run: git checkout ${{ github.event.pull_request.base.sha }}

# Get package old version name
- name: Get package info
id: packageOld
uses: codex-team/action-nodejs-package-info@v1

# Stop workflow and do not bump version if it was changed already
- name: Stop workflow and do not bump version if it was changed already
uses: actions/github-script@v3
if: steps.packageOld.outputs.version != steps.packageNew.outputs.version
with:
script: |
core.setFailed('Version was changed! ${{ steps.packageOld.outputs.version }} -> ${{ steps.packageNew.outputs.version }}')

bump-version:
needs: check-for-no-version-changing
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2

# Setup node environment
- uses: actions/setup-node@v1
with:
node-version: 15
registry-url: https://registry.npmjs.org/

# Bump version to the next prerelease (patch) with rc suffix
- name: Suggest the new version
run: yarn version --prerelease --preid rc --no-git-tag-version

# Get package new version name
- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1

# Create pull request with changes
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Bump version
committer: github-actions <action@github.com>
author: github-actions <action@github.com>
branch: auto-bump-version
base: ${{ steps.vars.outputs.base_branch }}
delete-branch: true
title: "Bump version up to ${{ steps.package.outputs.version }}"
body: |
Auto-generated bump version suggestion because of PR:
**${{ github.event.pull_request.title }}** #${{ github.event.pull_request.number }}
108 changes: 108 additions & 0 deletions .github/workflows/create-a-release-draft.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
name: Create a release draft

on:
pull_request:
branches:
- next
types: [closed]

jobs:
# If pull request was merged then we should check for a package version update
check-version-changing:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2
with:
fetch-depth: 0

# Get package new version name
- name: Get package info
id: packageNew
uses: codex-team/action-nodejs-package-info@v1

# Checkout to the base commit before merge
- name: Checkout to the base commit before merge
run: git checkout ${{ github.event.pull_request.base.sha }}

# Get package old version name
- name: Get package info
id: packageOld
uses: codex-team/action-nodejs-package-info@v1

# Stop workflow if version was not changed
- name: Stop workflow if version was not changed
uses: actions/github-script@v3
if: steps.packageOld.outputs.version == steps.packageNew.outputs.version
with:
script: |
core.setFailed('No version changes. ${{ steps.packageOld.outputs.version }}')

# Create a new draft release
release-draft:
needs: check-version-changing
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2
with:
# Pull submodules
submodules: 'recursive'

# Setup node environment
- uses: actions/setup-node@v1
with:
node-version: 15
registry-url: https://registry.npmjs.org/

# Prepare, build and publish project
- name: Install dependencies
run: yarn

# Build Editor.js
- name: Build output files
run: yarn build

# Get package version name
- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.package.outputs.version }}
release_name: v${{ steps.package.outputs.version }}

# Fill release description from pull request body name
body: "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}"

# Save as a draft release
draft: true

# If version name contains "-rc" suffix than mark a "pre-release" checkbox
prerelease: ${{ contains(steps.package.outputs.version, '-rc') }}

# Build and upload target Editor.js build to release as artifact
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/editor.js
asset_name: editor.js
asset_content_type: application/javascript

# Send a notification message
- name: Send a message
uses: codex-team/action-codexbot-notify@v1
with:
webhook: ${{ secrets.CODEX_BOT_WEBHOOK_FRONTEND }}
message: '🦥 [Draft release v${{ steps.package.outputs.version }}](${{ steps.create_release.outputs.html_url }}) for package [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) has been created. Add changelog and publish it!'
parse_mode: 'markdown'
disable_web_page_preview: true
53 changes: 53 additions & 0 deletions .github/workflows/publish-package-to-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Publish package to NPM

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2
with:
# Pull submodules
submodules: 'recursive'

# Setup node environment
- uses: actions/setup-node@v1
with:
node-version: 15
registry-url: https://registry.npmjs.org/

# Prepare, build and publish project
- name: Install dependencies
run: yarn

- name: Build output files
run: yarn build

- name: Publish the package
run: yarn publish --access=public ${{ github.event.release.prerelease && '--tag=next' || '--tag=latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

notify:
needs: publish
runs-on: ubuntu-latest
steps:
# Checkout to target branch
- uses: actions/checkout@v2

- name: Get package info
id: package
uses: codex-team/action-nodejs-package-info@v1

- name: Send a message
uses: codex-team/action-codexbot-notify@v1
with:
webhook: ${{ secrets.CODEX_BOT_NOTIFY_EDITORJS_PUBLIC_CHAT }}
message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published'
parse_mode: 'markdown'
disable_web_page_preview: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ yarn-error.log

test/cypress/screenshots
test/cypress/videos

dist/
16 changes: 9 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
.idea/
build/sprite.svg
docs/
example/
src/
.idea
.github
docs
example
src
test
.babelrc
.editorconfig
.eslintignore
.eslintrc
.git
.gitmodules
.jshintrc
.postcssrc
.postcssrc.yml
.stylelintrc
CODEOWNERS
cypress.json
tsconfig.json
tslint.json
webpack.config.js
yarn.lock
.github
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![](https://flat.badgen.net/bundlephobia/minzip/@editorjs/editorjs?color=green)](https://www.npmjs.com/package/@editorjs/editorjs)
[![Backers on Open Collective](https://opencollective.com/editorjs/backers/badge.svg)](#backers)
[![Sponsors on Open Collective](https://opencollective.com/editorjs/sponsors/badge.svg)](#sponsors)
[![](https://flat.badgen.net/npm/license/@editorjs/editorjs)](https://www.npmjs.com/package/@editorjs/editorjs)
[![](https://img.shields.io/npm/l/@editorjs/editorjs?style=flat-square)](https://www.npmjs.com/package/@editorjs/editorjs)
[![Join the chat at https://gitter.im/codex-team/editor.js](https://badges.gitter.im/codex-team/editor.js.svg)](https://gitter.im/codex-team/editor.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png" alt="iOS Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>iOS Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera |
Expand Down Expand Up @@ -129,7 +129,6 @@ Choose the most usable method of getting Editor for you.

- Node package
- Source from CDN
- Local file from project

##### Option A. NPM install

Expand Down Expand Up @@ -157,9 +156,7 @@ For example, place this in your HTML:
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
```

##### Option C. Save source within your project

Copy the [editor.js](dist/editor.js) file to your project and load it.
Or download the bundle file and use it from your server.

```html
<script src="editor.js"></script>
Expand Down
2 changes: 0 additions & 2 deletions dist/editor.js

This file was deleted.

67 changes: 0 additions & 67 deletions dist/editor.js.LICENSE.txt

This file was deleted.

Loading