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

Merge package:watcher #1665

Merged
merged 219 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
f147253
File watching package.
munificent Jul 12, 2013
a335cac
Fix pathos->path in watcher example.
munificent Jul 12, 2013
63933a6
Split up tests and add some heartbeats to try to make them not timeout.
munificent Jul 12, 2013
f07eca1
Add some debug prints to figure out why a test is failing on windows.
munificent Jul 12, 2013
56a381d
Normalize paths in mock timestamp map.
munificent Jul 12, 2013
03d3095
Normalize paths when matching them.
munificent Jul 13, 2013
2e152fd
Add missing newline after Actual value in fail message.
Jul 23, 2013
a8acfcb
Re-implement directory polling.
munificent Aug 2, 2013
954d17f
pkg: analysis aided cleanup
kevmoo Aug 6, 2013
35f4717
Handle watching a non-existent directory.
munificent Aug 14, 2013
897f32c
Fix error handling in watcher.
munificent Aug 14, 2013
1da9e39
Normalize test paths.
munificent Aug 14, 2013
b027f42
Use filtered stacks in pub, barback, and watcher tests.
nex3 Aug 27, 2013
1820015
Use Directory.systemTemp getter in pkg subdirectory of repository.
whesse Oct 3, 2013
41732d4
Bump wait time for watcher test.
munificent Oct 8, 2013
7fd14c9
Adapt streams for additional stackTrace argument.
floitschG Oct 11, 2013
f2807ba
Remove FileException, DirectoryException and LinkException from dart:…
Oct 24, 2013
5bd235d
Remove uses of Options from pkg, samples, tests, and third_party dire…
whesse Oct 30, 2013
1efdfcb
fix csslib and watcher warnings
Oct 31, 2013
0abea1b
add versions and constraints for packages and samples
Nov 6, 2013
db84ec8
Revert "add versions and constraints for packages and samples"
Nov 6, 2013
c8c3d49
Re-land r29957 (add versions and constraints for packages and samples…
dgrove Nov 6, 2013
90e0361
Wrap Directory.watch on linux for the watcher package.
nex3 Nov 7, 2013
3d4e068
Fix the watcher tests on Windows.
nex3 Nov 8, 2013
1b8eb68
Fix an analyzer error in the linux directory watcher.
nex3 Nov 8, 2013
9d1f993
Wrap Directory.watch on Mac OS for the watcher package.
nex3 Nov 11, 2013
1918a1a
Make path_set_test use Windows-friendly paths where necessary.
nex3 Nov 11, 2013
0090827
Fix some analyzer warnings and hints in pkg/watcher.
nex3 Nov 11, 2013
a05fcc1
Fix a typo in path_set_test.
nex3 Nov 11, 2013
85894ab
Work around a flake in the Mac OS watcher test on the bots.
nex3 Nov 11, 2013
f76c642
Properly close watcher streams during tests.
nex3 Nov 12, 2013
713dcc2
Add a bunch of debugging prints to the Mac OS watcher.
nex3 Nov 12, 2013
51905f5
Fix a synchronous event bug in futureStream.
nex3 Nov 12, 2013
7822373
Revert "Add a bunch of debugging prints to the Mac OS watcher."
nex3 Nov 12, 2013
a3d8591
Add a bunch of debugging prints to the Mac OS watcher.
nex3 Nov 12, 2013
1815318
Be sure we don't forward an error to a closed event stream.
nex3 Nov 12, 2013
dfb26e9
"Reverting 30205"
Nov 13, 2013
e3b44e1
Roll forward r30205.
nex3 Nov 13, 2013
f7f7051
Re-mark directory_watcher/mac_os_test as passing.
nex3 Nov 15, 2013
31241bc
Fix the Mac OS directory watcher tests on the bots.
nex3 Nov 16, 2013
84caa2a
Remove debugging prints from the Mac OS directory watcher.
nex3 Nov 16, 2013
3451b4b
Add a missing import to mac_os_watcher.
nex3 Nov 16, 2013
778821e
Properly close the Linux directory watcher when listing a subdirector…
nex3 Nov 27, 2013
cb64c9e
Update the Linux watcher to accommodate changes in [Directory.watch].
nex3 Dec 4, 2013
91f82aa
Add stack chain support to pkg/watcher and pkg/http.
nex3 Dec 5, 2013
d222b70
Add a missing import to pkg/watcher.
nex3 Dec 5, 2013
dc5efb8
Update the Mac OS watcher in pkg/watcher.
nex3 Dec 5, 2013
c47d626
Add debugging prints to the Mac OS directory watcher.
nex3 Dec 5, 2013
4214ba9
Increment package versions for stack trace changes.
nex3 Dec 9, 2013
ce9c760
Make pkg/path 1.0.0 and upgrade dependencies appropriately.
nex3 Dec 10, 2013
f16db64
Don't test for file differences in the polling watcher.
munificent Jan 7, 2014
5be127b
I guess Linux doesn't iterate over folders alphabetically.
munificent Jan 7, 2014
51191b8
Use stream matchers to unflake the mac OS watcher tests.
nex3 Jan 10, 2014
1fe426c
Stop working around issue 15458 in pkg/watcher.
nex3 Jan 10, 2014
0812547
pkg/unittest: added LICENSE
kevmoo Jan 13, 2014
450bf11
Fix a flaky test and work around issue 16003 in pkg/watcher.
nex3 Jan 14, 2014
d8c8244
Take a broader approach to filtering out bogus Mac OS watcher events.
nex3 Jan 15, 2014
3e9d973
Add some additional debugging prints to the mac os watcher.
nex3 Jan 29, 2014
94acc44
Change ScheduledProcess's output streams over to be ScheduledStreams.
nex3 Feb 18, 2014
9e3e710
Release stack_trace 1.0.0.
nex3 Jun 2, 2014
0de56c4
Use 'Directory.watch' on Windows in pkg/watcher, instead of pooling.
Jun 4, 2014
c6b489a
Fall back to PollingDirectoryWatcher if FileSystemEntity:watch is not…
Jun 4, 2014
271ee99
Clean up the Windows watcher.
Jun 10, 2014
33592ea
Mac no longer fire bogus events. Fix Mac watcher.
Jun 10, 2014
e213974
Don't use kFSEventStreamCreateFlagNoDefer as it messes with event flu…
Jun 10, 2014
1634962
Revert watcher changes for mac.
Jun 10, 2014
b5dd0d7
Add check to watcher, to avoid null-error if unknown path is removed.
Aug 4, 2014
747f891
pkg/watcher: prepare for 0.9.3
kevmoo Aug 4, 2014
249da16
pkg/watcher: update REAME descriptions
kevmoo Aug 4, 2014
a8b8e3f
pkg/watcher: actually flag for release
kevmoo Aug 4, 2014
8dd6edf
Mac no longer fire bogus events. Fix Mac watcher.
Oct 21, 2014
c4150c4
Revert "Mac no longer fire bogus events. Fix Mac watcher."
Oct 21, 2014
14c9b78
Add gitignore, status, and codereview files.
nex3 Dec 18, 2014
1aa48de
Update the pubspec's homepage link.
nex3 Dec 18, 2014
3938793
Properly skip tests in packages directories.
nex3 Dec 19, 2014
4f38cac
Remove initial */s in .status.
nex3 Dec 19, 2014
8616fff
Update .status to properly skip tests.
nex3 Dec 19, 2014
38a2b19
Skip tests even more properly.
nex3 Dec 19, 2014
9a301f7
Treat add events for known files as modifications instead of discardi…
munificent Jan 22, 2015
da5d8d3
Fix bugs where events could be added after watchers were closed.
nex3 Mar 10, 2015
23edaac
Remove debug prints.
nex3 Jun 12, 2015
16db63b
Fix analysis errors, warnings, and hints.
nex3 Jun 12, 2015
22e2f6c
Use the new test runner.
nex3 Jun 12, 2015
63de467
Add a Watcher interface.
nex3 Jun 12, 2015
0ecfafa
Add support for watching individual files.
nex3 Jun 12, 2015
d976b9c
Use the new test runner on the bots.
nex3 Jul 16, 2015
517a7f2
Fix a race condition in file watcher.
nex3 Jul 16, 2015
7baed2f
Backport fixes from master to 0.9.7+x.
nex3 Jul 20, 2015
7b90662
Merge pull request dart-lang/watcher#25 from dart-lang/backport
nex3 May 2, 2016
f256c7d
Fix all strong-mode warnings.
nex3 May 2, 2016
622d836
Merge pull request dart-lang/watcher#26 from dart-lang/strong
nex3 May 2, 2016
a60efc6
Remove async from dev_dependencies.
nex3 May 2, 2016
c93689c
Merge pull request dart-lang/watcher#27 from dart-lang/remove-async
nex3 May 2, 2016
264b5d6
Narrow the constraint on async.
nex3 May 3, 2016
f6d1409
Merge branch 'fix-dep' into 0.9.7+x
nex3 May 3, 2016
0b19020
Fix a crashing bug on Linux.
nex3 Aug 10, 2016
050331d
Merge pull request dart-lang/watcher#28 from dart-lang/fix-bug
nex3 Aug 10, 2016
1f4c361
Release 0.9.7+2.
nex3 Aug 10, 2016
3415e9f
Merge pull request dart-lang/watcher#29 from dart-lang/release
nex3 Aug 10, 2016
dd8f029
Oops, that was supposed to be 0.9.7+3.
nex3 Aug 10, 2016
1774d2d
Merge pull request dart-lang/watcher#30 from dart-lang/correct-version
nex3 Aug 10, 2016
0f1b3e3
Convert all files to Unix newlines.
nex3 Aug 10, 2016
dd4154e
Remove an unused dependency on collection.
nex3 Aug 10, 2016
630f5ad
Merge pull request dart-lang/watcher#32 from dart-lang/collection
nex3 Aug 10, 2016
a2635e8
Merge pull request dart-lang/watcher#31 from dart-lang/newlines
nex3 Aug 10, 2016
5ecc1d6
Support async 2.0.0. (dart-lang/watcher#37)
nex3 Sep 21, 2017
47bec76
Modify type on _onBatch to reflect call argument types
leafpetersen Oct 17, 2017
c252978
Update changelog per comments
leafpetersen Oct 17, 2017
a5cc372
Merge pull request dart-lang/watcher#40 from dart-lang/fuzzy_arrow_fix2
leafpetersen Oct 17, 2017
b4fbbfd
Use suggested analysis_options file name
kevmoo Dec 19, 2017
e3b509a
migrate to the new function syntax
kevmoo Dec 19, 2017
dd1ecce
Add travis support
kevmoo Dec 19, 2017
ba07d4a
dartfmt
kevmoo Dec 19, 2017
63df4ac
Stop using deprecated pkg/test apis
kevmoo Dec 19, 2017
4890963
Remove scheduled test (dart-lang/watcher#44)
grouma Jan 5, 2018
8d31f47
Make _LinuxDirectoryWatcher._listen generic (dart-lang/watcher#45)
nex3 Jan 6, 2018
1a43a63
Updates for Dart 2.0 corelib changes (wave 2.2)
leafpetersen Jan 31, 2018
d60ee37
Merge pull request dart-lang/watcher#47 from dart-lang/corelib_2_2
leafpetersen Jan 31, 2018
bc05d86
Run Travis against the stable branch (dart-lang/watcher#50)
nex3 Feb 14, 2018
f147ac8
Add types required in Dart2 and prepare for release (dart-lang/watche…
kevmoo May 23, 2018
3d01b6e
Update .travis.yml for branch change (dart-lang/watcher#57)
kevmoo May 23, 2018
6813e42
Use Dart 2 constants (dart-lang/watcher#60)
nex3 Jun 25, 2018
a81b4a1
dartfmt
kevmoo Jul 10, 2018
72e6065
chore: set max SDK version to <3.0.0 (dart-lang/watcher#61)
chalin Jul 17, 2018
b579a49
Add missing return to fix analysis (dart-lang/watcher#62)
keertip Aug 3, 2018
c5d255a
Add some stricter analysis (dart-lang/watcher#64)
natebosch Sep 11, 2018
e9823fa
Run dartfmt --fix (dart-lang/watcher#65)
natebosch Sep 11, 2018
a6b1bfb
Add lints from package:pedantic (dart-lang/watcher#66)
natebosch Sep 11, 2018
85aef33
Catch FileSystemException during existsSync() on Windows. (dart-lang/…
scheglov Nov 7, 2018
3b98d7f
Enable and fix lints, test on oldest supported Dart SDK, verify lints…
kevmoo May 16, 2019
1ebb788
Use more async/await (dart-lang/watcher#70)
natebosch May 22, 2019
b2919b3
Prepare to publish 0.9.7+12 (dart-lang/watcher#72)
natebosch Jul 12, 2019
a6d082e
Delete codereview.settings
kevmoo Aug 1, 2019
b8da234
Temporarily disable comment_references lint (dart-lang/watcher#76)
natebosch Nov 20, 2019
983431b
Handle file watcher closed exception (dart-lang/watcher#75)
MichaelRFairhurst Nov 21, 2019
390790f
Update .gitignore (dart-lang/watcher#77)
kevmoo Nov 21, 2019
680cc49
Fix newly enforced package:pedantic lints (dart-lang/watcher#78)
natebosch Dec 6, 2019
c1a1313
Check for FileSystemEntityType.notFound (dart-lang/watcher#80)
sortie Mar 6, 2020
51c389d
Prepare to publish, tighten pub constraints (dart-lang/watcher#81)
natebosch Mar 6, 2020
303f88d
Fix missing events for files with directory prefix (dart-lang/watcher…
natebosch Apr 16, 2020
8247653
Use ?. over explicit null check (dart-lang/watcher#85)
natebosch Apr 16, 2020
9faf036
Run tests on multiple platforms (dart-lang/watcher#86)
natebosch Apr 16, 2020
2131174
Prepare to publish (dart-lang/watcher#89)
natebosch Apr 22, 2020
4ddf84d
Add a reason to a flaky assert (dart-lang/watcher#88)
natebosch Apr 28, 2020
6148019
Implement the ability to register custom watcher implementations
michalt Sep 23, 2020
66a9b5c
Fix the test that was timing out
michalt Sep 24, 2020
b0d81fb
Throw when more than one custom factory is applicable
michalt Sep 24, 2020
dd23dc4
Another attempt to make the test work cross platform
michalt Sep 24, 2020
9f639cd
Minor fixes for earlier Dart versions and lint
michalt Sep 25, 2020
ed5783b
Merge pull request dart-lang/watcher#91 from michalt/custom-watcher-f…
davidmorgan Oct 8, 2020
9329e8e
Expose a smaller surface area for custom watchers (dart-lang/watcher#92)
natebosch Oct 12, 2020
01d5ab2
Remove unused dart:async import
srawlins Oct 20, 2020
8c7bd31
Merge pull request dart-lang/watcher#93 from srawlins/unused-async
srawlins Oct 21, 2020
1edd6fe
Remove unused dart:async imports.
srawlins Nov 10, 2020
504259d
Merge pull request dart-lang/watcher#94 from srawlins/unused-async-2
srawlins Nov 12, 2020
2c89b9d
Fix deprecated zone API usage (dart-lang/watcher#95)
kevmoo Nov 12, 2020
22a6cb3
Remove an inferrable argument type (dart-lang/watcher#96)
natebosch Nov 12, 2020
db7d36a
Migrate to null safety.
scheglov Dec 12, 2020
c30964f
Add dependency override for analyzer.
scheglov Dec 14, 2020
42d3623
Stop testing on SDK 2.8.4
scheglov Dec 14, 2020
cb570df
Fixes for review comments.
scheglov Dec 15, 2020
23206c0
Move '_filesToProcess' initializer.
scheglov Dec 15, 2020
d25bfa2
Merge pull request dart-lang/watcher#99 from scheglov/migrate-null-safe
scheglov Dec 16, 2020
f5c1338
Add a better static Function type (dart-lang/watcher#100)
natebosch Dec 16, 2020
f7024e9
Remove unused test utils (dart-lang/watcher#101)
natebosch Dec 17, 2020
e83d89b
Rewrite a StreamTransformer as an extension (dart-lang/watcher#102)
natebosch Dec 17, 2020
cd14204
Remove unnecessary imports (dart-lang/watcher#104)
srawlins Dec 30, 2020
5e3fce1
Update changelog version following migration (dart-lang/watcher#106)
natebosch Jan 6, 2021
07b47f3
Fix registerCustomWatcher to allow nulls (dart-lang/watcher#107)
michalt Jan 7, 2021
05d803d
Migrate to GitHub Actions (dart-lang/watcher#108)
athomas Jan 14, 2021
8fd6d28
null safety stable release (dart-lang/watcher#109)
jakemac53 Feb 5, 2021
4c09255
Latest setup, test on oldest supported SDK (dart-lang/watcher#110)
kevmoo Mar 31, 2021
8c0f82d
Update LICENSE
franklinyow Apr 2, 2021
0220227
Merge pull request dart-lang/watcher#111 from dart-lang/franklinyow-p…
franklinyow Apr 2, 2021
94f545c
drop package:pedantic, use package:lints (dart-lang/watcher#120)
jakemac53 Sep 30, 2021
66cf4d3
Fix lints/pedantic, require Dart 2.14 (dart-lang/watcher#122)
kevmoo Oct 5, 2021
a30730a
Ensure ready future completes (with error) in the case the watcher fa…
DanTup Jan 12, 2022
67c6d65
Add/enable Windows tests (dart-lang/watcher#124)
DanTup Jan 19, 2022
354a02b
update CI; add markdown badges
devoncarew Oct 4, 2022
6132012
add markdown badges
devoncarew Oct 4, 2022
2d40d6e
Merge pull request dart-lang/watcher#127 from devoncarew/update_ci
devoncarew Oct 4, 2022
5b1b2b2
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/watcher#132)
dependabot[bot] Jan 3, 2023
a6ebf33
Migrate from no-implicit-casts to strict-casts (dart-lang/watcher#134)
srawlins Jan 10, 2023
4d585e6
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/watcher#136)
dependabot[bot] Feb 1, 2023
a208546
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/watcher#135)
dependabot[bot] Feb 1, 2023
83d040c
Require Dart 2.19, use new team lints (dart-lang/watcher#138)
kevmoo Mar 7, 2023
3ff8ef8
blast_repo fixes (dart-lang/watcher#139)
kevmoo Mar 7, 2023
ea3be5b
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/watcher#141)
dependabot[bot] Apr 3, 2023
f1fe85b
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/watcher#140)
dependabot[bot] Apr 3, 2023
6895509
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/watcher#144)
dependabot[bot] May 1, 2023
aa09575
Remove unnecessary ConstructableFileSystemEvent classes (dart-lang/wa…
brianquinlan May 10, 2023
1cc8466
Update to 1.1.0 in preparation for release. (dart-lang/watcher#145)
brianquinlan May 12, 2023
84cd19d
blast_repo fixes (dart-lang/watcher#146)
devoncarew May 22, 2023
2ee9cf5
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/watcher#148)
dependabot[bot] Jul 1, 2023
4d48b99
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/watcher#149)
dependabot[bot] Sep 1, 2023
f5dcb04
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/watcher#151)
dependabot[bot] Oct 1, 2023
bffc449
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/watcher#152)
dependabot[bot] Oct 3, 2023
1ef1d1c
Migrate to dart_flutter_team_lints v2.1 (dart-lang/watcher#153)
parlough Oct 19, 2023
432ff8e
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/watcher#155)
dependabot[bot] Nov 1, 2023
26eae9d
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/watcher#154)
dependabot[bot] Nov 1, 2023
e826e96
Enable file watcher tests on Windows (dart-lang/watcher#156)
DanTup Nov 22, 2023
bcb8977
Fix PollingFileWatcher.ready for files that don't exist (dart-lang/wa…
DanTup Dec 1, 2023
0dc94f5
blast_repo fixes (dart-lang/watcher#160)
kevmoo Dec 20, 2023
62c7735
Bump actions/stale from 8.0.0 to 9.0.0 (dart-lang/watcher#161)
dependabot[bot] Jan 1, 2024
13a1499
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/watcher#162)
dependabot[bot] Feb 1, 2024
19f39be
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/watcher#163)
dependabot[bot] Apr 1, 2024
14d8e8e
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/watcher#164)
dependabot[bot] May 1, 2024
8a7cdbd
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/watcher#165)
dependabot[bot] May 1, 2024
1f7531b
blast_repo fixes (dart-lang/watcher#166)
devoncarew May 13, 2024
ad36f56
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 13, 2024
26d680b
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 1, 2024
63af032
update lints (dart-lang/watcher#169)
kevmoo Jun 25, 2024
d494a03
Bump the github-actions group with 2 updates (dart-lang/watcher#170)
dependabot[bot] Jul 1, 2024
d27c72f
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 1, 2024
94fff30
Bump actions/checkout from 4.2.0 to 4.2.2 in the github-actions group…
dependabot[bot] Nov 1, 2024
0086fea
Bump dart-lang/setup-dart in the github-actions group (dart-lang/watc…
dependabot[bot] Dec 1, 2024
83147e4
Merge package:watcher into the tools monorepo
mosuem Dec 11, 2024
8a6a818
Add issue template and other fixes
mosuem Dec 11, 2024
40494e7
Moving fixes
mosuem Dec 11, 2024
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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/watcher.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:watcher"
about: "Create a bug or file a feature request against package:watcher."
labels: "package:watcher"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,7 @@
'package:unified_analytics':
- changed-files:
- any-glob-to-any-file: 'pkgs/unified_analytics/**'

'package:watcher':
- changed-files:
- any-glob-to-any-file: 'pkgs/watcher/**'
71 changes: 71 additions & 0 deletions .github/workflows/watcher.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: package:watcher

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ main ]
paths:
- '.github/workflows/watcher.yaml'
- 'pkgs/watcher/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/watcher.yaml'
- 'pkgs/watcher/**'
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github


defaults:
run:
working-directory: pkgs/watcher/

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, macos-latest, windows-latest
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [3.1, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm
if: always() && steps.install.outcome == 'success'
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ don't naturally belong to other topic monorepos (like
| [source_span](pkgs/source_span/) | Provides a standard representation for source code locations and spans. | [![package issues](https://img.shields.io/badge/package:source_span-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_span) | [![pub package](https://img.shields.io/pub/v/source_span.svg)](https://pub.dev/packages/source_span) |
| [sse](pkgs/sse/) | Provides client and server functionality for setting up bi-directional communication through Server Sent Events (SSE) and corresponding POST requests. | [![package issues](https://img.shields.io/badge/package:sse-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asse) | [![pub package](https://img.shields.io/pub/v/sse.svg)](https://pub.dev/packages/sse) |
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |
| [watcher](pkgs/watcher/) | Monitor directories and send notifications when the contents change. | [![package issues](https://img.shields.io/badge/package:watcher-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Awatcher) | [![pub package](https://img.shields.io/pub/v/watcher.svg)](https://pub.dev/packages/watcher) |

## Publishing automation

Expand Down
4 changes: 4 additions & 0 deletions pkgs/watcher/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Don’t commit the following directories created by pub.
.dart_tool
.packages
pubspec.lock
5 changes: 5 additions & 0 deletions pkgs/watcher/.test_config
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary for this PR, but this file should now be named dart_test.yaml.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"test_package": {
"platforms": ["vm"]
}
}
130 changes: 130 additions & 0 deletions pkgs/watcher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
## 1.1.1

- Ensure `PollingFileWatcher.ready` completes for files that do not exist.
- Require Dart SDK `^3.1.0`
- Move to `dart-lang/tools` monorepo.

## 1.1.0

- Require Dart SDK >= 3.0.0
- Remove usage of redundant ConstructableFileSystemEvent classes.

## 1.0.3-dev

- Require Dart SDK >= 2.19

## 1.0.2

- Require Dart SDK >= 2.14
- Ensure `DirectoryWatcher.ready` completes even when errors occur that close the watcher.
- Add markdown badges to the readme.

## 1.0.1

* Drop package:pedantic and use package:lints instead.

## 1.0.0

* Require Dart SDK >= 2.12
* Add the ability to create custom Watcher types for specific file paths.

## 0.9.7+15

* Fix a bug on Mac where modifying a directory with a path exactly matching a
prefix of a modified file would suppress change events for that file.

## 0.9.7+14

* Prepare for breaking change in SDK where modified times for not found files
becomes meaningless instead of null.

## 0.9.7+13

* Catch & forward `FileSystemException` from unexpectedly closed file watchers
on windows; the watcher will also be automatically restarted when this occurs.

## 0.9.7+12

* Catch `FileSystemException` during `existsSync()` on Windows.
* Internal cleanup.

## 0.9.7+11

* Fix an analysis hint.

## 0.9.7+10

* Set max SDK version to `<3.0.0`, and adjust other dependencies.

## 0.9.7+9

* Internal changes only.

## 0.9.7+8

* Fix Dart 2.0 type issues on Mac and Windows.

## 0.9.7+7

* Updates to support Dart 2.0 core library changes (wave 2.2).
See [issue 31847][sdk#31847] for details.

[sdk#31847]: https://github.com/dart-lang/sdk/issues/31847


## 0.9.7+6

* Internal changes only, namely removing dep on scheduled test.

## 0.9.7+5

* Fix an analysis warning.

## 0.9.7+4

* Declare support for `async` 2.0.0.

## 0.9.7+3

* Fix a crashing bug on Linux.

## 0.9.7+2

* Narrow the constraint on `async` to reflect the APIs this package is actually
using.

## 0.9.7+1

* Fix all strong-mode warnings.

## 0.9.7

* Fix a bug in `FileWatcher` where events could be added after watchers were
closed.

## 0.9.6

* Add a `Watcher` interface that encompasses watching both files and
directories.

* Add `FileWatcher` and `PollingFileWatcher` classes for watching changes to
individual files.

* Deprecate `DirectoryWatcher.directory`. Use `DirectoryWatcher.path` instead.

## 0.9.5

* Fix bugs where events could be added after watchers were closed.

## 0.9.4

* Treat add events for known files as modifications instead of discarding them
on Mac OS.

## 0.9.3

* Improved support for Windows via `WindowsDirectoryWatcher`.

* Simplified `PollingDirectoryWatcher`.

* Fixed bugs in `MacOSDirectoryWatcher`
27 changes: 27 additions & 0 deletions pkgs/watcher/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2014, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10 changes: 10 additions & 0 deletions pkgs/watcher/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/watcher.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/watcher.yaml)
[![pub package](https://img.shields.io/pub/v/watcher.svg)](https://pub.dev/packages/watcher)
[![package publisher](https://img.shields.io/pub/publisher/watcher.svg)](https://pub.dev/packages/watcher/publisher)

A file system watcher.

## What's this?

`package:watcher` monitors changes to contents of directories and sends
notifications when files have been added, removed, or modified.
1 change: 1 addition & 0 deletions pkgs/watcher/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include: package:dart_flutter_team_lints/analysis_options.yaml
Loading
Loading