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

feat!: release version 11.0.0 with breaking changes #2338

Merged
merged 99 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from 92 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
5f2058d
fix: remove super_clipboard from flutter_quill_extensions and move it…
EchoEllet Oct 17, 2024
b66c331
chore: merge origin/master and solve conflicts
EchoEllet Oct 17, 2024
fd6fa50
chore: remove controller from configuration class, remove the quill t…
EchoEllet Oct 22, 2024
76eced4
chore: remove SimpleSpellCheckerService from flutter_quill_extensions
EchoEllet Oct 22, 2024
b437e84
chore: remove experimental support for spell checking, remove the dep…
EchoEllet Oct 22, 2024
af5a173
Merge remote-tracking branch 'origin/master' into release/v11
EchoEllet Oct 22, 2024
a0ae142
chore(deps): remove equatable
EchoEllet Oct 22, 2024
bc6b6b8
chore: remove quill shared confiugration and toolbar shared configura…
EchoEllet Oct 22, 2024
fa75407
chore: remove QuillController.setContents()
EchoEllet Oct 22, 2024
6149dc1
chore: remove QuillController.editorFocusNode
EchoEllet Oct 22, 2024
0a05f02
chore: remove outdated comments
EchoEllet Oct 22, 2024
a127628
chore: always call setState() in _markNeedsBuild() in QuillRawEditorS…
EchoEllet Oct 22, 2024
ec24661
chore: extract code from _requestKeyboard() and add docs comment for …
EchoEllet Oct 22, 2024
1c10cd0
chore: remove classes related to editor element options, minor docs u…
EchoEllet Oct 22, 2024
5621671
chore: rename 'Configurations' to 'Config'
EchoEllet Oct 23, 2024
3c6d1dc
chore: refactor build method of embed block interface
EchoEllet Oct 23, 2024
bff8f70
chore: remove the experimental table support from flutter_quill_exten…
EchoEllet Oct 23, 2024
bf6380c
chore: remove old deprecated properties
EchoEllet Oct 23, 2024
419703c
chore: rename rawItemsMap to items for font family and font size options
EchoEllet Oct 23, 2024
86254dd
chore: remove deprecated formula embed support from flutter_quill_ext…
EchoEllet Oct 23, 2024
0ec8c88
chore: merge origin/master and fix conflicts with https://github.com/…
EchoEllet Oct 23, 2024
5a97bd3
chore: remove deprecated class SuperClipboardService, rename the dire…
EchoEllet Oct 23, 2024
1799693
chore: add commnet in imageProviderBuilder code docs comment in flutt…
EchoEllet Oct 23, 2024
78f614f
docs: fix typos in migration
EchoEllet Oct 23, 2024
4efb996
Merge remote-tracking branch 'origin/master' into release/v11
EchoEllet Oct 23, 2024
0616ce0
docs(readme): replace deprecated flutter_quill_internal.dart with int…
EchoEllet Oct 23, 2024
1e4a77a
docs(readme): improve README
EchoEllet Oct 23, 2024
69f3235
docs(readme): add the GitHub flutter_quill code snippet back
EchoEllet Oct 23, 2024
7514119
docs: add more details to the migration guide
EchoEllet Oct 24, 2024
f183ff0
fix(ios): use the localized strings for 'open', 'copy', and 'remove'
EchoEllet Oct 24, 2024
eed5629
chore: rename the file quill_controller_configurations.dart to quill_…
EchoEllet Oct 24, 2024
13563b5
chore: avoid storing quill editor config inside Document
EchoEllet Oct 26, 2024
3525ffc
chore: restore search within embed objects feature (revert removal of…
EchoEllet Oct 26, 2024
c34646c
chore: add @experimental to some APIs
EchoEllet Oct 26, 2024
d12e028
docs: add emojis to the migration guide, add the migration guide link…
EchoEllet Oct 26, 2024
d9b572b
chore: removes quill controller web files, updates QuillControllerCon…
EchoEllet Oct 26, 2024
4287bca
docs: fix typos in the migration guide
EchoEllet Oct 26, 2024
e8e5bbc
Merge remote-tracking branch 'origin/master' into release/v11
EchoEllet Oct 26, 2024
a3afaf1
chore: minor change in the migration guide
EchoEllet Oct 26, 2024
9ada73e
docs: update link of QuillControllerConfig.onClipboardPaste in the mi…
EchoEllet Oct 26, 2024
403a450
chore: fix dart analysis issues
EchoEllet Oct 27, 2024
46c890d
chore: mark QuillEditorConfig.customLeadingBlockBuilder as experimental
EchoEllet Oct 27, 2024
9e1dcab
chore: avoid exporting OptionalSize
EchoEllet Oct 27, 2024
79a771a
chore: rename _restoreToolbar to _restoreToolbarAfterMagnifier in tex…
EchoEllet Oct 27, 2024
f1a7e57
chore: annotate QuillEditorConfig.magnifierConfiguration as experimental
EchoEllet Oct 27, 2024
b739b70
chore: minor cleanup to magnifier feature
EchoEllet Oct 27, 2024
c18d90c
chore: export missing class, fix https://github.com/singerdmx/flutter…
EchoEllet Oct 27, 2024
5e33aa9
chore: fix dart analysis
EchoEllet Oct 27, 2024
fab53e5
chore(release): temp changes to publish 11.0.0 (will revert changes o…
EchoEllet Oct 27, 2024
56a49a6
chore: add temp dependency_overrides to fix CI failure
EchoEllet Oct 27, 2024
6e67ccb
chore: temp changes to publish 11.0.0-dev.1
EchoEllet Oct 27, 2024
ff1c98a
ci(publish): temp change to fix CI failure
EchoEllet Oct 27, 2024
5690bfc
chore: restore previous publish workflow (revert), update min version…
EchoEllet Oct 27, 2024
f8257ed
chore: revert CHANGELOG.md and publish.yml changes
EchoEllet Oct 27, 2024
95a31af
chore: revert a change in https://github.com/singerdmx/flutter-quill/…
EchoEllet Oct 27, 2024
1bad89c
chore: revert change of reverting the removal of _handles check intro…
EchoEllet Oct 27, 2024
f14dbe6
docs(migration): clarify the removal of the QuillToolbar widget
EchoEllet Oct 30, 2024
176e36e
docs(migration): improve removal of the QuillToolbar section
EchoEllet Oct 30, 2024
2ee4ae6
docs: add the custom toolbar page link in: removal of the QuillToolbar
EchoEllet Oct 30, 2024
0fcfaee
docs: add important info at the top of the migration guide
EchoEllet Oct 30, 2024
1f51935
feat(toolbar): add the base button options feature back, supports flu…
EchoEllet Oct 31, 2024
e22268c
chore: fix analysis warnings
EchoEllet Oct 31, 2024
c87e127
docs: add more details in the migration guide in the breaking behavio…
EchoEllet Oct 31, 2024
3d39c82
chore: minor change to the 'Breaking behavior' section
EchoEllet Oct 31, 2024
dd49060
chore(deps): improve dependencies constraints for compatibility
EchoEllet Nov 3, 2024
746aa3f
docs(migration): explain that QuillToolbar is not a visual widget lik…
EchoEllet Nov 4, 2024
0cc95c8
docs: minor changes to README.md andd migration guide
EchoEllet Nov 5, 2024
fe9dfd3
feat: clipboard paste callbacks, partial fix to https://github.com/si…
EchoEllet Nov 7, 2024
837adf0
docs: update outdated link in the migration guide
EchoEllet Nov 7, 2024
f1d06e3
chore: rename deltaToPaste() to getDeltaToPaste()
EchoEllet Nov 7, 2024
76b5564
docs: improve CHANGELOG.md format and quality, fixing https://github.…
EchoEllet Nov 8, 2024
47ac56f
ci: pass the GitHub token to an action
EchoEllet Nov 8, 2024
d62211a
docs: fix format of CHANGELOG.md
EchoEllet Nov 8, 2024
1144018
ci: use cider for CHANGELOG.md format validation
EchoEllet Nov 8, 2024
39ca2d6
ci: add a TODO to improve CHANGELOG.md validation
EchoEllet Nov 8, 2024
7de1d88
chore: remove flutter_quill_extensions from publishing
EchoEllet Nov 8, 2024
c204de7
chore: publish flutter_quill_extensions and add 'insertVideo' in quil…
EchoEllet Nov 8, 2024
55b9d34
chore(release): prepare to publish 11.0.0-dev.3
EchoEllet Nov 8, 2024
02b30e0
ci: increase _expectedTranslationKeysLength due to 'insertVideo'
EchoEllet Nov 8, 2024
1fb1937
ci: use a GitHub action to update the release notes
EchoEllet Nov 8, 2024
2ae5bef
chore(release): publish flutter_quill_extensions 11.0.0-dev.3
EchoEllet Nov 8, 2024
8750e64
chore(release): prepare to publish 11.0.0-dev.4
EchoEllet Nov 8, 2024
1cc4c4b
ci: remove the release notes file creation
EchoEllet Nov 8, 2024
25a45ed
chore(example): delete the current example to recreate
EchoEllet Nov 8, 2024
8a8abbd
chore: recreate the example (fix https://github.com/singerdmx/flutter…
EchoEllet Nov 8, 2024
49e0d98
docs(readme): update the screenshots of the example app
EchoEllet Nov 8, 2024
79ccfe8
docs(readme): update sample page link, remove 'breaking changes' from…
EchoEllet Nov 8, 2024
7ccd692
feat: add the option to disable rich text paste feature, partial fix …
EchoEllet Nov 8, 2024
2c33a55
chore(release): prepare to publish 11.0.0-dev.5
EchoEllet Nov 8, 2024
c01525c
Merge remote-tracking branch 'origin/master' into release/v11
EchoEllet Nov 8, 2024
0d4ecbc
chore: regenerate translations to reflect https://github.com/singerdm…
EchoEllet Nov 8, 2024
5d561d6
chore: ignore deprecations
EchoEllet Nov 8, 2024
20f3a60
docs: fix minor issue in Contributing guide
EchoEllet Nov 9, 2024
9e2a730
chore(example): add file read access for macOS
EchoEllet Nov 9, 2024
09a4aa9
ci(publish): first attemp to automate the CHANGELOG.md change while c…
EchoEllet Nov 9, 2024
df5352f
feat(l10n): localize "insert video" for Khmer language
EchoEllet Nov 9, 2024
e5c4d45
chore: simplify PR template
EchoEllet Nov 9, 2024
30a88bb
docs: update development notes
EchoEllet Nov 9, 2024
4ac4611
docs(readme): use images from GitHub repo instead of relative path to…
EchoEllet Nov 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 7 additions & 21 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<!--

Thank you for contributing.

Provide a description of your changes below and a general summary in the title.

Thank you for contributing. Provide a description of your changes below and a general summary in the title.
Consider reading the Contributor Guide: https://github.com/singerdmx/flutter-quill/blob/master/CONTRIBUTING.md.

The changes of `CHANGELOG.md` and package version in `pubspec.yaml` are automated.

-->

## Description
Expand All @@ -17,23 +10,20 @@ The changes of `CHANGELOG.md` and package version in `pubspec.yaml` are automate
## Related Issues

<!--

Replace this paragraph with a list of issues related to this PR from the [issue database](https://github.com/singerdmx/flutter-quill/issues). Indicate, which of these issues are resolved or fixed by this PR.

-->

<!-- *e.g.* -->
<!-- *e.g.*
- *Fix #123*
- *Related #456*
-->

## Type of Change

<!---

Put an x in all the boxes that apply:

- [x] **Example:**

<!---
Check the boxes that apply with x and leave the others empty. For example:
- [ ] ✨ **New feature:** Adds new functionality without breaking existing features.
- [x] πŸ› οΈ **Bug fix:** Resolves an issue without changing current behavior.
-->

- [ ] ✨ **New feature:** Adds new functionality without breaking existing features.
Expand All @@ -44,7 +34,3 @@ Put an x in all the boxes that apply:
- [ ] πŸ“ **Documentation:** Updates or additions to documentation.
- [ ] πŸ—‘οΈ **Chore:** Routine tasks, or maintenance.
- [ ] βœ… **Build configuration change:** Changes to build or deploy processes.

## Suggestions

<!-- Optional -->
19 changes: 19 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: πŸ“ Changelog File Check

# This workflow only validates if the CHANGELOG.md file was updated and doesn't validate the format.

on:
pull_request:
types: [assigned, opened, synchronize, reopened, labeled, unlabeled]
branches:
- master

jobs:
changelog:
name: πŸ” Verify Changelog Modification
runs-on: ubuntu-latest
steps:
- name: βœ… Check if CHANGELOG.md was modified
uses: tarides/changelog-check-action@v2
with:
changelog: CHANGELOG.md
29 changes: 29 additions & 0 deletions .github/workflows/gh_release_notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: πŸš€ Update GitHub Release Notes from CHANGELOG.md

on:
release:
types: [published]

jobs:
release-notes:
name: πŸ“ Publish Release Notes from Changelog
permissions:
# Required for updating GitHub release notes
contents: write
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout Repository
uses: actions/checkout@v4

- name: βœ‚οΈ Extract Release Notes from CHANGELOG.md
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v2
with:
changelog_file: CHANGELOG.md

- name: πŸ–‹οΈ Update Release Notes
uses: irongut/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: ${{ github.event.release.id }}
body: ${{ steps.extract-release-notes.outputs.release_notes }}
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: πŸ§ͺ Run Tests

# TODO: Split the tests into tests.yml and quality checks into checks.yml once start using https://pub.dev/packages/melos

on:
push:
branches: [master, dev]
Expand Down Expand Up @@ -49,4 +51,11 @@ jobs:
run: flutter test

- name: πŸ” Check the translations
run: dart ./scripts/ensure_translations_correct.dart
run: dart ./scripts/translations_check.dart

- name: πŸ“₯ Install cider
run: dart pub global activate cider

# TODO: Need a more strict way to validate the format that uses https://keepachangelog.com/en/1.1.0/
- name: πŸ” Validate CHANGELOG.md format
run: $HOME/.pub-cache/bin/cider list CHANGELOG.md
39 changes: 3 additions & 36 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ jobs:
name: Publish the packages
permissions:
id-token: write
# Give the default GITHUB_TOKEN write permission to commit and push the changed files to the repository.
# Also required for uploading files to the Release assets
# Required for uploading files to the release assets of GitHub.
contents: write
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Checkout repository
uses: actions/checkout@v4
# Needed for commit and push changes
with:
# TODO: Try to not hardcode the branch name
ref: master
fetch-depth: 0 # To get all tags

- name: πŸ“„ Upload LICENSE file to release assets
uses: softprops/action-gh-release@v2
Expand Down Expand Up @@ -50,8 +44,6 @@ jobs:
# - name: Update the authorization requests to "https://pub.dev" to use the environment variable "PUB_TOKEN".
# run: dart pub token add https://pub.dev --env-var PUB_TOKEN

# Before publishing the new packages, update the version for all the packages first

# Extract version from the tag (handles the 'v' prefix)
- name: 🏷️ Extract version from tag as pubspec.yaml version
id: extract_version
Expand All @@ -67,37 +59,12 @@ jobs:
exit 1
fi

- name: 🏷️ Extract release tag
id: release_tag
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: πŸ“‘ Fetch release notes from Github API and create a required file by the next step
run: dart ./scripts/create_version_content_from_github_release.dart "${{ github.repository }}" "${{ steps.release_tag.outputs.tag }}"

- name: πŸ“ Update version and CHANGELOG for all the packages
run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }}

- name: πŸ’Ύ Commit updated version and CHANGELOG
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(version): update to version ${{ steps.extract_version.outputs.VERSION }}"
# TODO: Validate the tag, the version must match the one in pubspec.yaml

- name: πŸ” Verify changes made by the script
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "βœ… Changes have been committed."
# TODO: Might automate some changes of the CHANGELOG.md

- name: πŸ”„ Check if package is ready for publishing
run: flutter pub publish --dry-run

- name: πŸ“€ Publish flutter_quill
run: flutter pub publish --force

- name: πŸ“€ Publish flutter_quill_extensions
run: flutter pub publish --force
working-directory: ./flutter_quill_extensions/

- name: πŸ“€ Publish flutter_quill_test
run: flutter pub publish --force
working-directory: ./flutter_quill_test/

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,5 @@ example/ios/Podfile.lock
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspec-lock.
pubspec.lock
Loading
Loading