allow analyzer 4.x, and prepare to publish (#1687)

diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index 0d3ecb9..170b6bb 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,5 +1,6 @@
-## 1.21.0-dev
+## 1.21.0
 
+* Allow analyzer version `4.x`.
 * Add a `github` reporter option for use with GitHub Actions.
 * Make the `github` test reporter the default when we detect we're running on
   GitHub Actions.
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index 9a8a0bf..5009182 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test
-version: 1.21.0-dev
+version: 1.21.0
 description: >-
   A full featured library for writing and running Dart tests across platforms.
 repository: https://github.com/dart-lang/test/blob/master/pkgs/test
@@ -8,7 +8,7 @@
   sdk: '>=2.14.0 <3.0.0'
 
 dependencies:
-  analyzer: '>=2.0.0 <4.0.0'
+  analyzer: '>=2.0.0 <5.0.0'
   async: ^2.5.0
   boolean_selector: ^2.1.0
   collection: ^1.15.0
@@ -33,7 +33,7 @@
   yaml: ^3.0.0
   # Use an exact version until the test_api and test_core package are stable.
   test_api: 0.4.9
-  test_core: 0.4.11
+  test_core: 0.4.12
 
 dev_dependencies:
   fake_async: ^1.0.0
diff --git a/pkgs/test_api/pubspec.yaml b/pkgs/test_api/pubspec.yaml
index d568ff2..db42265 100644
--- a/pkgs/test_api/pubspec.yaml
+++ b/pkgs/test_api/pubspec.yaml
@@ -22,7 +22,7 @@
   matcher: '>=0.12.11 <0.12.12'
 
 dev_dependencies:
-  analyzer: '>=2.1.0 <4.0.0'
+  analyzer: '>=2.1.0 <5.0.0'
   fake_async: ^1.2.0
   glob: ^2.0.0
   graphs: ^2.0.0
diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md
index cf535fb..ddd988e 100644
--- a/pkgs/test_core/CHANGELOG.md
+++ b/pkgs/test_core/CHANGELOG.md
@@ -1,9 +1,9 @@
-## 0.4.12-dev
+## 0.4.12
 
 * Remove wait for VM platform isolate exits.
 * Drop `dart2jsPath` configuration support.
 * Allow loading tests under a path with the directory named `packages`.
-* Require analyzer version `3.3.0`.
+* Require analyzer version `3.3.0`, and allow version `4.x`.
 
 ## 0.4.11
 
diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml
index 1c7349a..06a4511 100644
--- a/pkgs/test_core/pubspec.yaml
+++ b/pkgs/test_core/pubspec.yaml
@@ -1,5 +1,5 @@
 name: test_core
-version: 0.4.12-dev
+version: 0.4.12
 description: A basic library for writing tests and running them on the VM.
 homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core
 
@@ -7,7 +7,7 @@
  sdk: '>=2.14.0 <3.0.0'
 
 dependencies:
-  analyzer: '>=3.3.0 <4.0.0'
+  analyzer: '>=3.3.0 <5.0.0'
   async: ^2.5.0
   args: ^2.0.0
   boolean_selector: ^2.1.0