Skip to content

v3.1.0 - #9

Merged
yammadev merged 1 commit into
masterfrom
v3.1.0
Oct 22, 2026
Merged

yammadev merged 1 commit into
masterfrom
v3.1.0

Conversation

@yammadev

Copy link
Copy Markdown
Owner

feat: v3.1.0 – complete ISO set, modern Sass build, npm package

Backwards compatible with 3.0.0: same files, paths and classes.

Features

  • feat(flags): add AQ, BQ and EH; every ISO 3166-1 alpha-2 code is covered
  • feat(png): render missing @2x/@3x for CAF, CAS, CNA, COC, CSA, WW
  • feat(css): .flag-icons works on any element, not only /
  • feat(css): .fill modifier (background-size: cover)
  • feat(sass): @use ... with (...) support, legacy @import kept
  • feat(sass): mixins flag()/base()/image() and new config variables
  • feat(data): flags.json as single source for Sass lists and README
  • feat(pkg): publishable as @yammadev/flag-icons
  • feat(docs): demo page with search for GitHub Pages

Changes

  • perf(svg): SVGO, 829 KB -> 409 KB, pixel-verified against originals
  • build: Grunt + Ruby Sass -> Dart Sass + npm scripts
  • docs: README rewritten, CHANGELOG.md, updated country names, FlagKit license
  • ci: tests on Node 18/20/22 and tag releases to npm + GitHub
  • test: 15 tests incl. a 3.0.0 compatibility suite

Fixes

  • fix(css): compiled CSS was built from outdated sources
  • fix(css): @charset is now the first rule

Closes #4, closes #5

Backwards compatible with 3.0.0: same files, paths and classes.

- Add AQ, BQ and EH flags (full ISO 3166-1 alpha-2) - Add missing @2x/@3x PNG for CAF, CAS, CNA, COC, CSA, WW - .flag-icons works on any element; new .fill modifier - Sass @use with() support, legacy @import kept; mixins - flags.json as single source for Sass lists and README - SVG optimized with SVGO (829 KB -> 409 KB) - Dart Sass + npm scripts replace Grunt/Ruby Sass - README, CHANGELOG, LICENSE (FlagKit), demo page, CI - Tests incl. 3.0.0 compatibility suite (Windows-safe)

Closes #4, closes #5
@yammadev
yammadev merged commit 8b5a0ad into master Oct 22, 2026
3 checks passed
@yammadev
yammadev deleted the v3.1.0 branch October 22, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Antarctica (AQ) flag some png flags are missing

1 participant