Changelog
tilttek/dice-probability-bundlePas encore traduite
Cette page n'est pas encore traduite en français ; elle est présentée en anglais.
All notable changes to tilttek/dice-probability-bundle will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
0.1.0-alpha - 2026-11-20
Added
TilttekDiceProbabilityBundleand its configuration: explosion depth, work limit, samples, seed and roll limit of the estimates, the most dice of an expression and values of a distribution, rounding of divisions, subdirectory of the UX kit's recipes, work of the search of groups, and rate limit of the component;TilttekDiceBundlerequired, whose custom dice and limits the probabilities use. The defaults hold a request to a fraction of a second.DiceStatistics: the distribution of an expression written as text, two expressions compared, an event on a set of dice, in the notation of a locale, with the configured rounding or another;Rounding;TooManyOutcomesfor a distribution of more values than the bundle draws.GroupSearch: the steps of the search of the groups an estimate looks for,6d6g10, weighed before any die is rolled — exhaustive up to 12 dice, greedy beyond, the worst count for a computed or exploding set,repeat()and every branch counted —, andGroupsTooCostlypastgroup_work_limit:12d6g12and10d10g10are refused at once.Refusal, implemented byGroupsTooCostly,TooManyOutcomesandThrottled: the key and the parameters of the reason of a refusal in thetilttek_dice_probabilitydomain, translated in English and French.- Twig:
tilttek_dice_distribution(),tilttek_dice_versus(),tilttek_dice_probabilities(), thetilttek_dice_fractionfilter, whose reduction is bounded — terms of up to 18 digits on native integers, longer ones byext-gmpor not at all,digitsbetween 1 and 60 —, andtilttek_dice_probability_kit(); the templates of a summary, a bar chart hidden from assistive technologies and a table that is always there, with the comparison of two expressions, the estimates and their margin, and the share of explosions cut at their depth, in cards of the UX kit; translations in English and French. - The Live Component
TilttekDiceProbability:Distribution: an expression, a second one to compare it with, and what the chart shows, computed again as they are typed, in fields of the UX kit, the results announced politely and the errors said in its alert, a refusal of the bundle in its translated reason. - The rate limit of the Live Component, on by default:
ComputationThrottlecounts each computation the browser asks for, 60 a minute per IPv4 address or IPv6 /64 in a sliding window ofsymfony/rate-limiter, keyed by a digest, failing closed; a cache pool or a factory of the application; the container refuses to compile withoutsymfony/rate-limiterunlessrate_limitis turned off. - The screens drawn with the recipes
Alert,Card,Chart,Field,Input,RadioGroupandTableof the PHIL UX kit, installed by the Symfony UX Toolkit, named in the subdirectory of its configuration or ofkit_subdirectory:KitComponentsandKitSubdirectoryPass. group_work_limitgiven to theSettingsoftilttek/dice-probability0.1.4 as well: its estimate counts the steps of the groups it actually searches and stops past the same limit, behind the weighing ofGroupSearch.- The rate limit of the Live Component refuses, in the
prodenvironment, a cache pool local to each server, where a client could spend the limit once per server:rate_limit.cache_poolnames a pool on a shared store, orrate_limit.single_server: truesays the application runs on one server. The check is theRateLimitGuardofphil/rate-limit. - The Flex recipe in
recipe/0.1: the bundle andconfig/packages/tilttek_dice_probability.yaml, with the rounding and the rate limit of the component. - Documentation: installation, configuration, statistics in PHP, templates, extension points, testing and reference.
- Community files: contribution guide, code of conduct, security policy and MIT licence.