Repository navigation
Highlights
- Named instances (#1050): run several independent sets of flags in one app, each with its own adapter, groups and optional Flipper Cloud project. See the named instances guide.
- Cloud reads from memory (#1105, #1131): with Cloud as the default, flag checks read from one in-memory copy per process instead of your database or Redis. A non-memoized check went from 69.3µs to 3.10µs on ActiveRecord. Set
FLIPPER_CLOUD_MEMORY_READS=falseto switch back. - SemVer expressions (#1099): compare app versions by Semantic Versioning rules.
- ActiveRecord
table_prefix:(#1037), plus--table-prefixon the generators. - Syncs never go backward (#1098): a stale Cloud response can't replace newer flags, and webhook mode polls every 5 minutes as a backstop.
- Faster checks, a security pass, and Ruby 4.0 and Rails 8.1 support.
The full write-up is in the release post.
What's Changed
- Add feature instance to feature_operation instrumentation payload by @jnunemaker in #998
- Don’t require ActiveRecord models until after ActiveRecord is loaded by @benedikt in #999
- Document non-atomic write hazard in Moneta adapter by @jnunemaker in #1011
- Fix race_condition_ttl being a silent no-op in ActiveSupportCacheStore by @jnunemaker in #1018
- Escape dashboard gate tooltip values by @jnunemaker in #1006
- Document intentional CRC32 modulo bias in percentage-of-actors by @jnunemaker in #1007
- Enforce webhook signature timestamp tolerance by @jnunemaker in #1022
- Avoid mutating adapter data during JSON export by @jnunemaker in #1010
- Fix concurrent feature memoization by @jnunemaker in #1012
- Warn about ActiveRecord value column migration by @jnunemaker in #1013
- Return false for type-mismatched comparison operands by @jnunemaker in #1017
- Stop opening cloud migrate URLs automatically by @jnunemaker in #1021
- Add "I deploy on Fridays" merch callout to UI and README by @jnunemaker in #1024
- Escape feature and gate keys in HTTP adapter requests by @jnunemaker in #1009
- Cap import payload size and guard UI import input by @jnunemaker in #1014
- perf: short-circuit gate checks so
enabled?can return faster by @connorshea in #1029 - Wrap
enabled?actors in a single pass by @connorshea in #1030 - Build ActiveRecord gate results in a single pass by @connorshea in #1031
- Return shared frozen default config from Memory adapter reads by @connorshea in #1032
- Bump actions/cache from 5 to 6 by @dependabot[bot] in #1004
- Normalize Flipper UI feature names to ASCII on create by @koddsson in #1027
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #1002
- Bump rubygems/configure-rubygems-credentials from 1.0.0 to 2.1.0 by @dependabot[bot] in #1001
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #993
- Normalize feature names by removing invisible characters only by @jnunemaker in #1033
- Conditionally disable "Migrate to Flipper Cloud" section by @harto in #1005
- Use model.arel_table in ActiveRecord get_all for Rails main compatibility by @kylekeesling in #1003
- Redact sensitive headers from HTTP debug output by @jnunemaker in #1015
- Add non-blocking Rails main entry to CI matrix by @jnunemaker in #1034
- Add empty group detection and pruning to Expression, guard enables by @jnunemaker in #1036
- Support table prefixes in ActiveRecord adapter by @jnunemaker in #1037
- Initialize Flipper module state while loading by @jnunemaker in #1008
- Synchronize cloud telemetry lifecycle to fix shared-state races by @jnunemaker in #1019
- Require https for Flipper Cloud url by @jnunemaker in #1016
- Make mutex synchronization fork-safe across memory adapters and pollers by @jnunemaker in #1038
- Extract fork-safe mutex into ForkSafeMutex by @jnunemaker in #1035
- perf: Avoid enumerating the feature set repeatedly for an API request by @connorshea in #1039
- Block imports through read-only adapters by @jnunemaker in #1040
- Reject empty Flipper Cloud sync secrets by @jnunemaker in #1041
- Strip additional invisible characters from feature names by @jnunemaker in #1043
- Fix API parsing of empty query segments by @jnunemaker in #1044
- Harden API read parameter parsing by @jnunemaker in #1045
- Load cloud migration support in UI action by @jnunemaker in #1046
- Harden API mutation transport parsing by @jnunemaker in #1047
- Preserve wrapped adapter import semantics through caches by @jnunemaker in #1049
- Fix generator tests by @dpep in #1054
- Remove unused lets from specs by @dpep in #1053
- Remove more unused spec setup by @dpep in #1055
- Point README newsletter links to flippercloud.io by @jnunemaker in #1057
- Point README project overview link to flippercloud.io/blog by @jnunemaker in #1058
- Point flipper:setup users to Flipper Cloud by @jnunemaker in #1059
- Remove unused private methods by @dpep in #1056
- Add a Rails quick start to the README by @jnunemaker in #1060
- Tell flipper-cloud installers to use the flipper gem by @jnunemaker in #1061
- Remove UI decorator code nothing has used since 2020 by @jnunemaker in #1062
- Print usage instead of a backtrace for missing or unknown CLI arguments by @jnunemaker in #1063
- Cut a third of per-request allocations by sharing gate instances by @czj in #1064
- Fix the contributor Docker setup so the full suite runs in containers by @jnunemaker in #1069
- Refuse a feature named flipper_features in the Redis and Mongo adapters by @jnunemaker in #1066
- Ask for the Cloud token when flipper cloud push is run without one by @jnunemaker in #1067
- Fix the RSpec deprecation warning in the feature list shared spec by @jnunemaker in #1072
- Let the flipper command run without bundle exec by @jnunemaker in #1071
- Package only runtime files in the flipper gem by @jnunemaker in #1070
- Let the Mongo minitest use MONGODB_PORT like the Mongo spec by @jnunemaker in #1076
- Render the UI when Ruby's default encoding is US-ASCII by @jnunemaker in #1075
- Let flipper/api load without Bundler by @jnunemaker in #1074
- Package only lib files in the plugin gems by @jnunemaker in #1073
- Remove UI::Action#run_other_action and Api::Action#run_other_action by @jnunemaker in #1068
- Stop the statsd subscriber printing for sync and telemetry events by @jnunemaker in #1077
- Show expressions in the UI by @jnunemaker in #1078
- Give the system test's browser commands 30 seconds on slow CI runners by @jnunemaker in #1080
- Use absolute README urls so images and links work on rubydoc.info by @jnunemaker in #1082
- Pin concurrent-ruby only for the Rails versions that need it by @jnunemaker in #1081
- Test on Ruby 3.4 and 4.0 and Rails 8.1 in CI by @jnunemaker in #1087
- Remove dev gems and Code Climate config nothing uses by @jnunemaker in #1086
- Print an error instead of a backtrace for bad flipper option values by @jnunemaker in #1085
- Fail expression comparisons, not the check, on values that aren't times by @jnunemaker in #1084
- Keep read only adapters read only when another adapter wraps them by @jnunemaker in #1083
- Fail expressions, not the check, on property values of the wrong type by @jnunemaker in #1091
- Print the version from flipper --version by @jnunemaker in #1090
- Declare logger and pstore so flipper loads on Ruby 4 without Rails by @jnunemaker in #1088
- Load rack/session with flipper/ui and test on Rack 3 by @jnunemaker in #1089
- Show the cloud commands in flipper help cloud and cloud --help by @jnunemaker in #1093
- Let the ActiveRecord adapter build before ActiveRecord::Base loads by @jnunemaker in #1092
- Print command help without loading the app by @jnunemaker in #1094
- Stop the sync exceptions spec from failing across a second boundary by @jnunemaker in #1095
- Share one Mongo client per process in the MONGO_URL setup by @jnunemaker in #1096
- Reuse one frozen cache key per feature in Memoizable by @czj in #1065
- Run Ruby < 3.2 on ubuntu-24.04 now that ubuntu-latest is 26.04 by @czj in #1079
- Run every CI test job on ubuntu-24.04 by @jnunemaker in #1097
- Add SemVer expression for version comparisons by @jnunemaker in #1099
- Never let an older sync replace newer flags; poll slowly in webhook mode by @jnunemaker in #1098
- Pitch the Cloud MCP server in the README and UI by @jnunemaker in #1106
- Preserve read-only status through caching adapters by @jnunemaker in #1102
- Allow re-enabling existing actors at the limit by @jnunemaker in #1101
- Avoid adapter reads for missing flags after full preload by @jnunemaker in #1104
- Report read-only write targets in composite adapters by @jnunemaker in #1103
- Reload preloaded flags after local changes by @jnunemaker in #1100
- Remove the unused jQuery file and Breadcrumb class from the UI by @jnunemaker in #1111
- Show the actor limit as a form error in the UI instead of a 500 by @jnunemaker in #1110
- Decode the flipper id in GET /actors/:flipper_id by @jnunemaker in #1109
- Let the Http adapter use a url that ends in a slash by @jnunemaker in #1108
- Handle requests without rack.input in the API and Cloud webhook by @jnunemaker in #1107
- Answer HEAD requests in the UI like GET by @jnunemaker in #1115
- Shrink the UI's Cloud logo from 170 KB to 14 KB by @jnunemaker in #1114
- Let the UI remove a group that is no longer registered by @jnunemaker in #1112
- Let the UI remove an actor whose id contains a comma by @jnunemaker in #1113
- Answer 405 for unsupported request methods in the API by @jnunemaker in #1116
- Answer 405 for unsupported request methods in the UI by @jnunemaker in #1117
- Don't create a feature when disable gets an unsupported argument by @jnunemaker in #1119
- Don't remove features from the app's adapter in the test helper by @jnunemaker in #1120
- Import rollout's :all group as enabled for every actor by @jnunemaker in #1121
- Give expressions a hash that matches eql? by @jnunemaker in #1122
- Treat top-level constant names as unknown expressions by @jnunemaker in #1123
- Serve Cloud reads from one process-local Memory adapter by @jnunemaker in #1105
- Add named Flipper instances by @jnunemaker in #1050
- Simplify WebMock stubs by @dpep in #1124
- Ignore a JSON body a read can't use in the API by @jnunemaker in #1118
- Allow Redis cache entries without an expiry by @jnunemaker in #1125
- Update flipper-redis to support redis < 7 by @lucasprag in #1052
- Fix two flaky specs (telemetry leak, set_default timing) by @jnunemaker in #1128
- Run CI on pull requests, including forks by @jnunemaker in #1127
- Let Feature#add create features in strict mode by @jnunemaker in #1126
- Bump version to 1.5.0.rc1 by @jnunemaker in #1129
- Stop re-reading and re-syncing an unchanged Cloud version on every thread by @jnunemaker in #1131
- Bump version to 1.5.0.rc2 by @jnunemaker in #1132
- Let ActiveRecord table_prefix work when only the prefixed tables exist by @jnunemaker in #1139
- Time the Cloud memory recopy in fractions of a second by @jnunemaker in #1133
- Return nil from SemVer.parse for badly encoded strings by @jnunemaker in #1134
- Reuse named test adapters across examples in TestHelp by @jnunemaker in #1137
- Print a usage error for CLI expressions that can't be enabled by @jnunemaker in #1136
- Convert non-UTF-8 feature names to UTF-8 before normalizing by @jnunemaker in #1135
- Make --table-prefix generator migrations runnable for any valid prefix by @jnunemaker in #1138
- Bump version to 1.5.0 by @jnunemaker in #1140
New Contributors
- @connorshea made their first contribution in #1029
- @koddsson made their first contribution in #1027
- @harto made their first contribution in #1005
- @kylekeesling made their first contribution in #1003
- @lucasprag made their first contribution in #1052
Full Changelog: v1.4.2...v1.5.0