ac_dart_essentials 0.3.1
ac_dart_essentials: ^0.3.1 copied to clipboard
AC Dart Essentials
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.3.1 - 2026-04-05 #
Added #
IsolateErrorListenerrecord typedef:({SendPort sendPort, void Function() close})JsonObjectArraytypedef (List<JsonObject>)- Top-level
durationMin,durationMax,durationAdd,durationSubtract,durationLt,durationLte,durationGt,durationGte,durationEqualfunctions - Top-level
castAsJsonObjectArrayandjsonGetfunctions PatternExtensions.captureGroup([String? name])— replaces removednamedCaptureplatform_independent.dartexport file (corrects theplatform_independant.dartspelling)Inspectconstructor is nowconstMemoizer.valuenow throwsStateErrorwhen accessed beforerunOnce
Changed #
createIsolateErrorListenernow returnsIsolateErrorListenerinstead ofSendPort; use.sendPortto pass toIsolate.addErrorListenerand call.close()when the isolate exitsStringPointer.operator+/operator-now return a newStringPointerinstance instead of mutating_offset; usepointer.offset += nto advance in placeJsonNumberchanged fromdoubletonum— correctly handles integer JSON numbers decoded bydart:convertUriQueryParameterschanged fromMap<String, dynamic>toMap<String, Object>DurationUtilstatic methods moved to top-levelduration*functions; class retained as@Deprecatedforwarding shimJsonUtil.castAsCollection/JsonUtil.getmoved to top-levelcastAsJsonObjectArray/jsonGet; class retained as@Deprecatedforwarding shimConverterPassthroughSinkchanged fromextends Sink<S>toimplements Sink<S>- SDK minimum constraint raised from
>=2.19.5to>=3.0.0
Deprecated #
JsonCollection— useJsonObjectArrayinsteadDurationUtilclass — use the top-levelduration*functions insteadJsonUtilclass — usecastAsJsonObjectArray/jsonGetinstead
Removed #
PatternExtensions.namedCapture— usecaptureGroupinsteadplatform_independant.dartexport file (misspelling; replaced byplatform_independent.dart)
Fixed #
CaseStringExtension.toTitleCase()— no longer throwsRangeErroron empty stringstruncate— now throwsArgumentErrorfor negativemaxLength(was a strippedassert)PatternExtensions.entireMatch/entireMatchI— now correctly handlesRegExpinputs by extracting.pattern; previously usedtoString()which produced malformed regex literalsPatternTrimStringExtension.patternTrimLeft/patternTrimRight— sameRegExpsource fixInspect._inspectValue— usestake(n+1).length > ninstead of.lengthto avoid O(n) evaluation of lazyIterablesDataHistorySink.add— window eviction condition corrected from>to>=; was keeping one extra element when the buffer was exactly at window size
0.2.3 #
- Upgrade ac_lints package to 0.4.0
0.2.2 #
- Upgrade ac_lints package to 0.3.0
0.2.1 #
- Update LICENSE's copyright to include contributors and use SPDX file header
- Widen SDK environment requirement to include Dart 3 versions
- Upgrade ac_lints package to 0.2.0
0.2.0 #
- fix exports
- add String.prependLines extension
0.1.0 #
- Initial release