Skip to content

Merge package:typed_data #405

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

Merged
merged 120 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
5ba4a69
Create associated packages for the dart:collection and dart:async libs.
lrhn Dec 19, 2013
1223cb1
Remove suprplus quoting from pubspec author fields.
lrhn Dec 19, 2013
a784067
Adding license files to packages.
lrhn Dec 19, 2013
89de11a
Update package:typed_data to 1.0.0
lrhn Aug 26, 2014
be5d543
Add some ArgumentError and RangeError constructors that capture more …
lrhn Nov 11, 2014
4f0445a
Update project to match OSS template
sgjesse Feb 24, 2015
2bf5f44
Update .status for package typed_data
sgjesse Feb 24, 2015
e8dda84
Use the new test runner.
nex3 Oct 13, 2015
c5711c3
Add _TypedDataBuffer.addRange.
nex3 Oct 27, 2015
2801f94
Optimizie the insertion of an iterable.
lrhn Oct 29, 2015
670c2df
Update the doc comment format.
nex3 Nov 3, 2015
0ac4b1f
Fix TypedDataBuffer.insertAll() with an Iterable.
nex3 Feb 24, 2016
25e25ae
Fix all strong-mode warnings.
nex3 May 9, 2016
98a2cf7
expand the sdk constraint; rev version
devoncarew Aug 2, 2017
235e391
prefix with typed_data.
devoncarew Aug 2, 2017
addb94d
Merge pull request dart-lang/typed_data#4 from dart-lang/update
devoncarew Aug 2, 2017
40ecbb5
fix SDK constraint
kevmoo Sep 29, 2017
ed7c9e5
enable travis-ci
kevmoo Sep 29, 2017
c655f7c
dartfmt
kevmoo Sep 29, 2017
6d87e2c
fix fuzzy-arrow hints
kevmoo Sep 29, 2017
c7c1fcb
Remove SDK 15130 work-around
kevmoo Sep 29, 2017
ed2b6b6
remove empty if block
kevmoo Sep 29, 2017
6a8b73f
Prepare for release
kevmoo Sep 29, 2017
74bd42a
Fix analyzer task (dart-lang/typed_data#7)
kevmoo Oct 19, 2017
6636285
Fix test for Dart 2.0 ints (dart-lang/typed_data#9)
keertip Jan 17, 2018
bfa0de2
Fix runtime Dart 2 test errors (dart-lang/typed_data#13)
nex3 May 2, 2018
79fb95b
chore: set max SDK version to <3.0.0 (dart-lang/typed_data#17)
chalin Jul 17, 2018
74c5574
test: fix dart2js tests
kevmoo Jul 18, 2018
13ba193
Drop version to 1.1.6 before publish
kevmoo Jul 18, 2018
b518e0f
Update .gitignore to new `dart_tool` pub cache (dart-lang/typed_data#14)
bcko Mar 18, 2019
256fa26
Enable and fix a number of lints, test on oldest supported Dart SDK (…
kevmoo Apr 30, 2019
32a90e3
fix latest pedantic lints
kevmoo May 10, 2019
9657ac9
Add typed queue classes
nex3 Oct 18, 2019
ee8d232
Ignore an unhelpful lint
nex3 Oct 18, 2019
ef6e1ab
Run tests on stable and dev
nex3 Oct 18, 2019
3e70f40
Code review changes
nex3 Nov 14, 2019
563c285
More fixes
nex3 Nov 15, 2019
28c2603
Fix new pedantic lints (dart-lang/typed_data#22)
kevmoo Dec 7, 2019
21ca39b
Revert analyzer hack – fixed version published (dart-lang/typed_data#23)
kevmoo Dec 9, 2019
07e695a
Update min SDK to 2.4 (dart-lang/typed_data#24)
kevmoo Jan 13, 2020
19c93bb
Merge remote-tracking branch 'origin/master' into queue
nex3 Jan 15, 2020
b1062e7
Fix a couple lints
nex3 Jan 15, 2020
a3fcc1f
dartfix
kevmoo Jan 15, 2020
8c2aa8f
Revert "dartfix"
nex3 Jan 16, 2020
22d3342
Avoid newer pedantic lints, per request from @lrhn
nex3 Jan 16, 2020
0d0d11e
Merge pull request dart-lang/typed_data#21 from dart-lang/queue
lrhn Jan 17, 2020
1540edb
Pin pedantic lints while avoiding version lock
kevmoo Feb 27, 2020
fb7999e
Remove author field, flag this as unreleased v1.2.0(-dev)
kevmoo Feb 27, 2020
ae3986c
Migrate to NNBD.
munificent Mar 17, 2020
f5a1d80
Fix a couple of analyzer hints
kevmoo Mar 20, 2020
d75a582
change version back to 1.3.0-dev so pub get works
kevmoo Mar 20, 2020
36f82ec
Refactor libraries so TypedDataBuffer is public, but hidden (dart-lan…
kevmoo Mar 20, 2020
e652405
Disallow implicit casts in analysis_options (dart-lang/typed_data#28)
kevmoo Mar 20, 2020
4975081
Update SDK dep and add dependency overrides for null-safe pkg versions
kevmoo May 4, 2020
0626781
Merge remote-tracking branch 'origin/master' into null_safety
kevmoo May 4, 2020
b0e9cd9
Add two more null safe overrides
kevmoo May 15, 2020
f9cbdcf
add a few more dependency overrides
kevmoo May 18, 2020
f146399
release 1.2 (dart-lang/typed_data#30)
jakemac53 Jun 22, 2020
5c601d4
run tests on travis and other prep for merging into master (dart-lang…
jakemac53 Jun 23, 2020
00583f5
Merge branch 'master' into null_safety
jakemac53 Jun 23, 2020
f7a63f0
restrict the collection dep to not allow stable releases (dart-lang/t…
jakemac53 Jul 8, 2020
9089159
rename version to -nullsafety (dart-lang/typed_data#33)
jakemac53 Jul 9, 2020
d046d81
allow the <=2.9.10 stable sdk and bump version (dart-lang/typed_data#34)
jakemac53 Jul 17, 2020
848a60d
fix changelog typo (dart-lang/typed_data#35)
jakemac53 Jul 17, 2020
390f284
update for the 2.10 dev sdk (dart-lang/typed_data#36)
jakemac53 Jul 22, 2020
2a3e3f0
bump version for release (dart-lang/typed_data#37)
jakemac53 Jul 22, 2020
8a418f5
Update travis-ci to test on latest dev (dart-lang/typed_data#38)
kevmoo Jul 28, 2020
c43744a
Delete .test_config
kevmoo Jul 29, 2020
2589a1d
fix formatting
kevmoo Sep 4, 2020
82779f8
Prepare for the 2.11 dev SDKs (dart-lang/typed_data#40)
natebosch Sep 22, 2020
5a4afd5
allow the 2.12 prerelease sdks (dart-lang/typed_data#41)
jakemac53 Oct 23, 2020
6ca922d
remove git overrides (dart-lang/typed_data#42)
jakemac53 Oct 23, 2020
76dbff8
Bump SDK constraints for pub (dart-lang/typed_data#43)
natebosch Nov 3, 2020
b3acec9
remove redundant experiment (dart-lang/typed_data#44)
pq Nov 12, 2020
78c0b4b
Migrate to GitHub Actions (dart-lang/typed_data#45)
athomas Jan 14, 2021
5b9e4eb
Prepare to publish stable null safety (dart-lang/typed_data#46)
natebosch Feb 2, 2021
12b30b2
Latest setup, test on oldest supported SDK (dart-lang/typed_data#47)
kevmoo Mar 31, 2021
7d23e4c
Update LICENSE (dart-lang/typed_data#48)
franklinyow Mar 31, 2021
e0762b0
Move from pedantic to lints package (dart-lang/typed_data#49)
natebosch Jul 22, 2021
30cb981
Remove duplicative lints
kevmoo Nov 16, 2021
7706f67
Enable and fix a few more lints
kevmoo Nov 16, 2021
9f19d7d
Switch from homepage to repository in pubspec (dart-lang/typed_data#51)
devoncarew Apr 20, 2022
f1ad55c
prep for publishing 1.3.1 (dart-lang/typed_data#52)
devoncarew May 12, 2022
6fe45ca
Drop invariant bools lint (dart-lang/typed_data#53)
kevmoo Aug 7, 2022
53803b4
blast_repo fixes (dart-lang/typed_data#55)
kevmoo Nov 10, 2022
95c51af
Bump actions/checkout from 3.1.0 to 3.2.0 (dart-lang/typed_data#57)
dependabot[bot] Jan 3, 2023
4186736
Migrate no-implicit-casts to strict-casts (dart-lang/typed_data#58)
srawlins Jan 10, 2023
e85b2c8
Bump actions/checkout from 3.2.0 to 3.3.0 (dart-lang/typed_data#60)
dependabot[bot] Feb 1, 2023
fdfcc82
Bump dart-lang/setup-dart from 1.3 to 1.4 (dart-lang/typed_data#59)
dependabot[bot] Feb 1, 2023
f8c3352
fix ci, update analysis options (dart-lang/typed_data#61)
kevmoo Feb 13, 2023
d23118b
Bump actions/checkout from 3.3.0 to 3.5.0 (dart-lang/typed_data#63)
dependabot[bot] Apr 3, 2023
6e4185c
Bump dart-lang/setup-dart from 1.4.0 to 1.5.0 (dart-lang/typed_data#62)
dependabot[bot] Apr 3, 2023
a3f4dc1
Bump actions/checkout from 3.5.0 to 3.5.2 (dart-lang/typed_data#64)
dependabot[bot] May 8, 2023
0d38a4b
add topics to the pubspec file (dart-lang/typed_data#65)
devoncarew May 9, 2023
a44b9cb
blast_repo fixes (dart-lang/typed_data#66)
devoncarew May 22, 2023
778b800
Require Dart 3.0, update lints (dart-lang/typed_data#67)
kevmoo Jun 8, 2023
2d39eb5
Bump actions/checkout from 3.5.2 to 3.5.3 (dart-lang/typed_data#69)
dependabot[bot] Jul 1, 2023
84b0ee5
Bump actions/checkout from 3.5.3 to 3.6.0 (dart-lang/typed_data#72)
dependabot[bot] Sep 1, 2023
444c3ad
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (dart-lang/typed_data#74)
dependabot[bot] Oct 1, 2023
4c32e1f
Bump actions/checkout from 3.6.0 to 4.1.0 (dart-lang/typed_data#73)
dependabot[bot] Oct 1, 2023
f85d1d5
Bump actions/checkout from 4.1.0 to 4.1.1 (dart-lang/typed_data#77)
dependabot[bot] Nov 1, 2023
7fabdeb
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (dart-lang/typed_data#76)
dependabot[bot] Nov 1, 2023
e08f52a
drop outdated lints (dart-lang/typed_data#78)
kevmoo Dec 4, 2023
d588dd6
Bump dart-lang/setup-dart from 1.6.0 to 1.6.2 (dart-lang/typed_data#79)
dependabot[bot] Feb 1, 2024
c4d60c4
Test dart2wasm (dart-lang/typed_data#80)
kevmoo Feb 1, 2024
093c4d2
Bump actions/checkout from 4.1.1 to 4.1.2 (dart-lang/typed_data#83)
dependabot[bot] Apr 1, 2024
6315197
Bump actions/checkout from 4.1.2 to 4.1.4 (dart-lang/typed_data#84)
dependabot[bot] May 1, 2024
8cbbda1
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (dart-lang/typed_data#85)
dependabot[bot] May 1, 2024
a444952
blast_repo fixes (dart-lang/typed_data#86)
devoncarew May 13, 2024
0358a8a
Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group…
dependabot[bot] May 13, 2024
2cbdb3f
Bump actions/checkout from 4.1.5 to 4.1.6 in the github-actions group…
dependabot[bot] Jun 2, 2024
fde3815
blast_repo fixes (dart-lang/typed_data#89)
kevmoo Jun 20, 2024
7a429ad
update lints, require Dart 3.1 (dart-lang/typed_data#90)
kevmoo Jun 21, 2024
4ac0456
Bump dart-lang/setup-dart in the github-actions group (dart-lang/type…
dependabot[bot] Jul 1, 2024
808ca6e
Require Dart 3.5, use TypeDataList in many places (dart-lang/typed_da…
kevmoo Aug 27, 2024
5f6b7f5
Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group…
dependabot[bot] Oct 4, 2024
a4da48c
Merge package:typed_data into the core monorepo
mosuem Oct 16, 2024
4e32b75
Add issue template and other fixes
mosuem Oct 16, 2024
8e43206
Ignore licenses for package:platform
mosuem Oct 16, 2024
5e83b5b
Merge branch 'main' into merge-typed_data-package
mosuem Oct 17, 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/typed_data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:typed_data"
about: "Create a bug or file a feature request against package:typed_data."
labels: "package:typed_data"
---
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@
"package:platform":
- changed-files:
- any-glob-to-any-file: 'pkgs/platform/**'

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

on:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/typed_data.yaml'
- 'pkgs/typed_data/**'
pull_request:
branches: [ main ]
paths:
- '.github/workflows/typed_data.yaml'
- 'pkgs/typed_data/**'
schedule:
- cron: "0 0 * * 0"
env:
PUB_ENVIRONMENT: bot.github

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

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@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
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:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.5, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
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'
- name: Run Chrome tests
run: dart test --platform chrome
if: always() && steps.install.outcome == 'success'
- name: Run Chrome tests - wasm
run: dart test --platform chrome --compiler dart2wasm
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 @@ -18,6 +18,7 @@ This repository is home to various Dart packages under the [dart.dev](https://pu
| [os_detect](pkgs/os_detect/) | Platform independent OS detection. | [![pub package](https://img.shields.io/pub/v/os_detect.svg)](https://pub.dev/packages/os_detect) |
| [path](pkgs/path/) | A string-based path manipulation library for all of the path operations you know and love. | [![pub package](https://img.shields.io/pub/v/path.svg)](https://pub.dev/packages/path) |
| [platform](pkgs/platform/) | A pluggable, mockable platform information abstraction for Dart. | [![pub package](https://img.shields.io/pub/v/platform.svg)](https://pub.dev/packages/platform) |
| [typed_data](pkgs/typed_data/) | Utility functions and classes related to the dart:typed_data library. | [![pub package](https://img.shields.io/pub/v/typed_data.svg)](https://pub.dev/packages/typed_data) |

## Publishing automation

Expand Down
10 changes: 10 additions & 0 deletions pkgs/typed_data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.buildlog
.DS_Store
.idea
.dart_tool/
.pub/
.settings/
build/
packages
.packages
pubspec.lock
6 changes: 6 additions & 0 deletions pkgs/typed_data/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
69 changes: 69 additions & 0 deletions pkgs/typed_data/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
## 1.4.0

* The type of the `buffer` constructor argument to `TypedDataBuffer` is now
`TypeDataList<E>` (instead of `List<E>`). While this is breaking change
statically there was a runtime cast that makes this change a no-op in
practice.
* Require Dart 3.5
* Move to `dart-lang/core` monorepo.

## 1.3.2

* Added package topics to the pubspec file.
* Require Dart 2.17.

## 1.3.1

* Switch to using `package:lints`.
* Populate the pubspec `repository` field.

## 1.3.0

* Stable release for null safety.
* Update SDK constraints to `>=2.12.0-0 <3.0.0` based on beta release
guidelines.

## 1.2.0

* Add typed queue classes such as `Uint8Queue`. These classes implement both
`Queue` and `List` with a highly-efficient typed-data-backed implementation.
Their `sublist()` methods also return typed data classes.
* Update min Dart SDK to `2.4.0`.

## 1.1.6

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

## 1.1.5

* Undo unnecessary SDK version constraint tweak.

## 1.1.4

* Expand the SDK version constraint to include `<2.0.0-dev.infinity`.

## 1.1.3

* Fix all strong-mode warnings.

## 1.1.2

* Fix a bug where `TypedDataBuffer.insertAll` could fail to insert some elements
of an `Iterable`.

## 1.1.1

* Optimize `insertAll` with an `Iterable` argument and no end-point.

## 1.1.0

* Add `start` and `end` parameters to the `addAll()` and `insertAll()` methods
for the typed data buffer classes. These allow efficient concatenation of
slices of existing typed data.

* Make `addAll()` for typed data buffer classes more efficient for lists,
especially typed data lists.

## 1.0.0

* ChangeLog starts here
27 changes: 27 additions & 0 deletions pkgs/typed_data/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2015, 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.
21 changes: 21 additions & 0 deletions pkgs/typed_data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[![Dart CI](https://github.com/dart-lang/core/actions/workflows/typed_data.yaml/badge.svg)](https://github.com/dart-lang/core/actions/workflows/typed_data.yaml)
[![pub package](https://img.shields.io/pub/v/typed_data.svg)](https://pub.dev/packages/typed_data)
[![package publisher](https://img.shields.io/pub/publisher/typed_data.svg)](https://pub.dev/packages/typed_data/publisher)

Helper libraries for working with typed data lists.

The `typed_data` package contains utility functions and classes that makes working with typed data lists easier.

## Using

The `typed_data` package can be imported using:

```dart
import 'package:typed_data/typed_data.dart';
```

## Typed buffers

Typed buffers are growable lists backed by typed arrays. These are similar to
the growable lists created by `<int>[]` or `<double>[]`, but store typed data
like a typed data list.
13 changes: 13 additions & 0 deletions pkgs/typed_data/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://dart.dev/guides/language/analysis-options
include: package:dart_flutter_team_lints/analysis_options.yaml

analyzer:
language:
strict-casts: true

linter:
rules:
- avoid_unused_constructor_parameters
- cancel_subscriptions
- no_adjacent_strings_in_list
- package_api_docs
Loading
Loading