diff --git a/CHANGELOG.md b/CHANGELOG.md index 42731ad..19853b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.6.2 + +* Set max SDK version to `<3.0.0`, and adjust other dependencies. + ## 1.6.1 * Drop the `retype` implementation for compatibility with the latest SDK. diff --git a/README.md b/README.md index a72ceec..6099121 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ These manipulate path strings based on your current working directory and the path style (POSIX, Windows, or URLs) of the host platform. For example: ```dart -p.join("directory", "file.txt"); +p.join('directory', 'file.txt'); ``` -This calls the top-level [join] function to join "directory" and +This calls the top-level `join()` function to join "directory" and "file.txt" using the current platform's directory separator. If you want to work with paths for a specific platform regardless of the @@ -37,7 +37,7 @@ underlying platform that the program is running on, you can create a ```dart var context = new p.Context(style: Style.windows); -context.join("directory", "file.txt"); +context.join('directory', 'file.txt'); ``` This will join "directory" and "file.txt" using the Windows path separator, diff --git a/analysis_options.yaml b/analysis_options.yaml deleted file mode 100644 index a10d4c5..0000000 --- a/analysis_options.yaml +++ /dev/null @@ -1,2 +0,0 @@ -analyzer: - strong-mode: true diff --git a/pubspec.yaml b/pubspec.yaml index ece564f..5c22cb4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,12 +1,15 @@ name: path -version: 1.6.1 -author: Dart Team +version: 1.6.2 + description: > - A string-based path manipulation library. All of the path operations you know - and love, with solid support on both Windows and POSIX (Linux and Mac OS X) - machines. + A string-based path manipulation library. All of the path operations you know + and love, with solid support on both Windows and POSIX (Linux and Mac OS X) + machines. +author: Dart Team homepage: http://github.com/dart-lang/path -dev_dependencies: - test: ">=0.12.0 <0.13.0" + environment: - sdk: ">=2.0.0-dev.62.0 <2.0.0" + sdk: '>=2.0.0-dev.62.0 <3.0.0' + +dev_dependencies: + test: '>=0.12.42 <2.0.0' diff --git a/test/path_test.dart b/test/path_test.dart index b45f8dc..782366c 100644 --- a/test/path_test.dart +++ b/test/path_test.dart @@ -13,7 +13,9 @@ main() { }); test('separator', () { + // ignore: deprecated_member_use expect(path.Style.posix.separator, '/'); + // ignore: deprecated_member_use expect(path.Style.windows.separator, '\\'); }); diff --git a/test/utils.dart b/test/utils.dart index 5e22ce1..79e95ec 100644 --- a/test/utils.dart +++ b/test/utils.dart @@ -6,7 +6,7 @@ import "package:test/test.dart"; import "package:path/path.dart" as p; /// A matcher for a closure that throws a [path.PathException]. -final throwsPathException = throwsA(new isInstanceOf()); +final throwsPathException = throwsA(new TypeMatcher()); void expectEquals(p.Context context, String path1, String path2) { expect(context.equals(path1, path2), isTrue,