Skip to content

Release 1.0.0#157

Open
FlorianRappl wants to merge 117 commits into
mainfrom
devel
Open

Release 1.0.0#157
FlorianRappl wants to merge 117 commits into
mainfrom
devel

Conversation

@FlorianRappl

@FlorianRappl FlorianRappl commented Jan 18, 2024

Copy link
Copy Markdown
Contributor

Types of Changes

Prerequisites

Please make sure you can check the following two boxes:

  • I have read the CONTRIBUTING document
  • My code follows the code style of this project

Contribution Type

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue, please reference the issue id)
  • New feature (non-breaking change which adds functionality, make sure to open an associated issue first)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Description

This is the 1.0.0 release of AngleSharp.Css - effectively being compatible with AngleSharp v1 and bringing the CSSOM to a good state.

Current status:

  • Enhancements for the API (easier to make an analysis / change an analysis)
  • Improvements for the CSSOM (dedicated <percentage>, <number> and <integer> types)
  • Tests and enhancements for the render tree model / render tree API
  • Documentation with some examples

Potentially we'll also include some perf. enhancements, but most likely this is done in a subsequent release. Current goal is to ship this with a stable basis.

FlorianRappl and others added 9 commits March 28, 2026 19:23
Enable nullable reference types solution-wide (but #nullable disabled marked for existing code)
Multi-target AngleSharp.Performance.Css to net472;net10.0 so that
Alba.CsCss (which only supports net462/net472) is excluded from the
net10.0 build. Update ExCSS from 2.0.6 to 4.3.1 and adapt to its
renamed StylesheetParser API.
Replace the custom TestSuite/ITestee infrastructure with BenchmarkDotNet
for statistically rigorous benchmarking with memory diagnostics. Inline
parser logic into a single CssParserBenchmarks class parameterized by
CSS sample file. Add benchmark usage instructions to README.
- Rewrite ContentFrom() to scan chars directly instead of
  re-invoking the full tokenizer, eliminating double-tokenization
- Cache single-char token strings via static lookup table,
  remove unused CssStringToken/CssUrlToken/CssCommentToken subclasses
- Add ToLowerFast() to skip allocation when strings are already
  lowercase, use StringBuilder for custom property name concatenation
- Replace @-rule if-else chain with dictionary dispatch, add
  dictionary index to CssStyleDeclaration for O(1) property lookups
- Avoid double-array allocation in PeriodicValueConverter when all
  4 values are present
Fix performance benchmark TFM compatibility. Update to latest ExCSS ver
CssPeriodicValue.CssText throws if any of the items in _values array is
null. This change makes CssText return an empty string if a null value
is found during the iteration.
Fix NullReferenceException in CssPeriodicValue
@jmbryan4

Copy link
Copy Markdown

@FlorianRappl when is the 1.0.0 release planned?

@FlorianRappl

Copy link
Copy Markdown
Contributor Author

Within the next 2 weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.