Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ title: 'fix: '
labels: bug
---

#### Description
## Description

A clear and concise description of what the bug is.

#### Steps To Reproduce
### Steps To Reproduce

1. Go to '...'
2. Add '....'
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'build: '
labels: build
---

#### Description
## Description

Describe what changes need to be done to the build system and why.

#### Requirements
### Requirements

- [ ] The build system is passing.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/chore.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'chore: '
labels: chore
---

#### Description
## Description

Clearly describe what change is needed and why. If this changes code then please use another issue type.

#### Requirements
### Requirements

- [ ] No functional changes to the code.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'ci: '
labels: ci
---

#### Description
## Description

Describe what changes need to be done to the ci/cd system and why.

#### Requirements
### Requirements

- [ ] The ci system is passing.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'docs: '
labels: documentation
---

#### Description
## Description

Clearly describe what documentation you are looking to add or improve.

#### Requirements
### Requirements

- [ ] Requirements go here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ title: 'feat: '
labels: feature
---

#### Description
## Description

Clearly describe what you are looking to add. The more business/user context the better.

#### Requirements
### Requirements

- [ ] Checklist of requirements to be fulfilled.

Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'perf: '
labels: performance
---

#### Description
## Description

Clearly describe what code needs to be changed and what the performance impact is going to be. Bonus point's if you can tie this directly to user experience.
Clearly describe what code needs to be changed and what the performance impact will be. Bonus points if you can tie this directly to user experience.

#### Requirements
### Requirements

- [ ] There is no drop in the unit or widget test coverage percentage.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/refactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'refactor: '
labels: refactor
---

#### Description
## Description

Clearly describe what needs to be refactored any why. Please provide links to related issues (bugs or upcoming features) in order to help prioritize.
Clearly describe what needs to be refactored and why. Please provide links to related issues (bugs or upcoming features) to help prioritize.

#### Requirements
### Requirements

- [ ] There is no drop in the unit or widget test coverage percentage.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/revert.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ title: 'revert: '
labels: revert
---

#### Description
## Description

Provide a link to a PR/Commit that you are looking to revert and why.

#### Requirements
### Requirements

- [ ] Change has been reverted.
- [ ] No change in unit/widget test coverage has happened.
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/style.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'style: '
labels: style
---

#### Description
## Description

Clearly describe what you are looking to change and why.

#### Requirements
### Requirements

- [ ] There is no drop in the unit test coverage percentage.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ title: 'test: '
labels: test
---

#### Description
## Description

List out the tests that need to be added or changed. Please also include any information as to why this was not covered in the past.

#### Requirements
### Requirements

- [ ] There is no drop in the unit test coverage percentage.
2 changes: 1 addition & 1 deletion .github/code_of_conduct.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ updates:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "dependencies"
2 changes: 2 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Pull Request

<!--

Thanks for contributing!
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ doc/api/
*.ipr
*.iws
.idea/
.vscode/

# Visual Studio Code related
.classpath
Expand Down
2 changes: 1 addition & 1 deletion .pubignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.github/
.vscode/
.zed/
124 changes: 0 additions & 124 deletions .vscode/tasks.json

This file was deleted.

17 changes: 17 additions & 0 deletions .zed/debug.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"adapter": "Dart",
"label": "Run example (simple)",
"type": "dart",
"args": ["--simple"],
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/example/lib/main.dart"
},
{
"adapter": "Dart",
"label": "Run example (real client)",
"type": "dart",
"request": "launch",
"program": "$ZED_WORKTREE_ROOT/example/lib/main.dart"
}
]
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
```

- **Packaged AI assets** (`extension/mcp/`): The package now ships MCP-compatible resources and prompts for AI coding agents, following the [Dart/Flutter packaged AI assets proposal](https://flutter.dev/go/packaged-ai-assets).
Once the Dart MCP server implements the proposal, agents will automatically have access to:
Once the Dart MCP server implements the proposal, agents will automatically have access to:
- `@functional_status_codes/api_reference` — full API cheat-sheet
- `@functional_status_codes/patterns` — idiomatic usage patterns
- `/functional_status_codes/handle_response` — prompt to generate HTTP response handling code
Expand All @@ -27,6 +27,7 @@ Once the Dart MCP server implements the proposal, agents will automatically have
### Documentation

- `maybeMapStatusCode` and `maybeWhenStatusCode`: added explicit note that the `isStatusCode` handler takes priority over all category handlers (`isSuccess`, `isClientError`, etc.) when both are provided.
- Added new quality-related badges to the `README.md`.

## 3.1.0

Expand Down Expand Up @@ -280,7 +281,6 @@ NEW FEATURE: added two new methods for a `Map` like equivalent of `when` and `wh
Contains **breaking changes** in `maybeMapStatusCode` method on `num`. Please follow migration guide below.

- refactor!: orElse parameter in maybeMapStatusCode now returns input value in order to handle this unregistered status code.

- docs: updated documentation of breaking update.
- docs: added topics to pubspec.yaml.
- chore: updated SDK upper-bound to 4.0.0.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![CodeFactor](https://www.codefactor.io/repository/github/tsinis/functional_status_codes/badge)](https://www.codefactor.io/repository/github/tsinis/functional_status_codes)
[![Pub points](https://img.shields.io/pub/points/functional_status_codes)](https://pub.dev/packages/functional_status_codes/score)
[![Created](https://img.shields.io/github/created-at/tsinis/functional_status_codes)](https://github.com/tsinis/functional_status_codes/commit/23d35c4fc890d01b8dc93409738e4fc61712e94f)
![CodeRabbit Pull Request Reviews](https://img.shields.io/coderabbit/prs/github/tsinis/functional_status_codes?utm_source=oss&utm_medium=github&utm_campaign=tsinis%2Ffunctional_status_codes&labelColor=171717&color=FF570A&link=https%3A%2F%2Fcoderabbit.ai&label=CodeRabbit+Reviews)
[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Size](https://img.shields.io/github/languages/code-size/tsinis/functional_status_codes)](https://github.com/tsinis/functional_status_codes#why-should-i-use-this-package)
[![Pub package](https://img.shields.io/pub/v/functional_status_codes.svg)](https://pub.dev/packages/functional_status_codes)
Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A simple one and modified http package example with use of function
publish_to: none

environment:
sdk: ^3.11.0
sdk: ^3.11.1

dependencies:
functional_status_codes:
Expand All @@ -13,4 +13,4 @@ dependencies:
dev_dependencies:
dart_code_metrics_presets: ^2.29.0 # DCM.
lints: ^6.1.0 # From Google.
test: ^1.30.0 # From Google.
test: ^1.30.0 # From Google.
2 changes: 2 additions & 0 deletions extension/mcp/prompts/cache_strategy.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Cache Strategy

Derive a caching strategy for HTTP status code **{{status_code}}** using the `functional_status_codes` package and RFC 7231 semantics.

{{#cache_backend}}
Expand Down
2 changes: 2 additions & 0 deletions extension/mcp/prompts/handle_response.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Handle Response

Generate idiomatic Dart code to handle an HTTP response using the `functional_status_codes` package.

{{#http_client}}
Expand Down
Loading
Loading