Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dart-lang/string_scanner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 35657e2
Choose a base ref
..
head repository: dart-lang/string_scanner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 413b57a
Choose a head ref
Showing with 27 additions and 22 deletions.
  1. +17 −0 .github/workflows/publish.yaml
  2. +1 −1 .github/workflows/test-package.yml
  3. +3 −1 CHANGELOG.md
  4. +1 −17 analysis_options.yaml
  5. +2 −0 lib/string_scanner.dart
  6. +3 −3 pubspec.yaml
17 changes: 17 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ master ]
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
permissions:
id-token: write # Required for authentication using OIDC
pull-requests: write # Required for writing the pull request note
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ jobs:
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [2.18.0, dev]
sdk: [3.0.0, dev]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 1.2.1-dev
## 1.2.1-wip

* Require Dart 3.0.0

## 1.2.0

18 changes: 1 addition & 17 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://dart.dev/guides/language/analysis-options
include: package:lints/recommended.yaml
include: package:dart_flutter_team_lints/analysis_options.yaml

analyzer:
language:
@@ -9,11 +9,8 @@ analyzer:

linter:
rules:
- always_declare_return_types
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_classes_with_only_static_members
- avoid_dynamic_calls
- avoid_private_typedef_functions
- avoid_redundant_argument_values
- avoid_returning_null_for_future
@@ -22,33 +19,20 @@ linter:
- avoid_void_async
- cancel_subscriptions
- comment_references
- directives_ordering
- join_return_with_assignment
- lines_longer_than_80_chars
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_runtimeType_toString
- omit_local_variable_types
- only_throw_errors
- package_api_docs
- prefer_asserts_in_initializer_lists
- prefer_const_constructors
- prefer_const_declarations
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_relative_imports
- prefer_single_quotes
- sort_pub_dependencies
- test_types_in_equals
- throw_in_finally
- type_annotate_public_apis
- unawaited_futures
- unnecessary_await_in_return
- unnecessary_lambdas
- unnecessary_parenthesis
- unnecessary_raw_strings
- unnecessary_statements
- use_if_null_to_convert_nulls_to_bools
- use_raw_strings
- use_string_buffers
2 changes: 2 additions & 0 deletions lib/string_scanner.dart
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@
// BSD-style license that can be found in the LICENSE file.

/// A library for parsing strings using a sequence of patterns.
library;

export 'src/exception.dart';
export 'src/line_scanner.dart';
export 'src/span_scanner.dart';
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: string_scanner
version: 1.2.1-dev
version: 1.2.1-wip
description: A class for parsing strings using a sequence of patterns.
repository: https://github.com/dart-lang/string_scanner

environment:
sdk: ">=2.18.0 <3.0.0"
sdk: ^3.0.0

dependencies:
source_span: ^1.8.0

dev_dependencies:
lints: ^2.0.0
dart_flutter_team_lints: ^1.0.0
test: ^1.16.0