- PR #87: Added
.Rules()
method onRuleSet
. Thanks @digitalcyote.
- Add parameter for including
Currency
fund codes (BOV, CLF, COU, MXV, UYI). - Fixed minor issue in
Person.Email
having duplicate names. - Helper method:
f.PickRandomWithout(ExcludeItem1, ExcludeItem2)
added. - Helper method:
f.PickRandom("cat", "dog", "fish")
added. - Performance: 40% reduction in Bogus' DLL size and memory footprint by removing whitespace in Json data files.
- Newtonsoft dependency update 10.0.3.
- Added
f => f.Rant
to generate random user content like product reviews. - Added
new Faker[T].Rules( (f, t) => ...)
as a shortcut for building rules quickly. - Added
Address.FullAddress
- Added
Internet.UrlWithPath
allowing to create URLs with random paths. - Added
ru
(Russian locale) hacker adjective, ing-verb, noun, and verb. - Added
Internet.Mac
address separator parameter. - Feature parity with faker.js @ 6cdb93ef...
- Using new C# 7 features. =)
- Building with Visual Studio 2017.
- Issue 70: Fixed
ArgumentException
that occurs with derived hiddennew
properties.
f => f.Generate(n, i => ...)
overload allows use of index when usingf.Generate
.
- PR 64: Improved
.PickRandom(IEnumerable)
performance. Thanks @chuuddo. - Added
"string".ClampLength(max,min)
extension method to clamp length of strings between min and max. - Issue 67: Fixed
Randomizer.Int(int.MaxValue, int.MinValue)
range overflow not returning randomint32
values.
- Compatibility with
Newtonsoft.Json
v10.0.1
- Added
.RuleFor(x.Item, "foo")
. Eliminates ceremony off =>
for simple values.
- Added range option to
Sentence
.
- New Feature: Allow implicit and explicit type casts:
Order o = orderFaker
andvar o = (Order)orderFaker
without having to callorderFaker.Generate()
.
- Added
IndexGlobal
alias forUniqueIndex
. - Added
IndexFaker
for uniqueness in Faker[T] lifetime. - Added
IndexVariable
a developer controlled index convenience variable. - Added
Database
dataset tof => f.Database
facade. - Fixed Issue 57 - Avoid unexpected behavior with Parent-Child generators using
UniqueIndex
. - Removed some
Internet.Avatars
that returned 404. - Reached feature/data parity with
faker.js
v4.1.0.
Internet.UserAgent
- Generates browser user agent strings.Internet.Password
- Generates user passwords using regex.- Added
az
/Azerbaijani locale. - Disallow
/
character inSystem.FileName
. Helpers.Slugify
properly replaces spaces with-
dashes.Lorem.Slug
slugs some lorem text.Finance.Iban
- Generates International Bank Account Numbers (IBAN).Finance.Bic
- Generates Bank Identifier Code (BIC) codes.Random.WeightedRandom
- Returns a weighted random distribution of items.- Allow
https://
in random images. Images.DataUri
- Generates "data:image/svg" URI with width and height.Database
data set for generating column, collation, type stuff.
- Bug: Issue 54: Work around for Visual Studio IntelliSense.
- New Feature: Bogus is now a signed assembly; PublicToken: fa1bb3f3f218129a
- New Feature: Added
PickRandom(IEnumerable)
overload. Thanks joleharkes.
- New Feature:
RuleForType(typeof(string))
allows bulk/default for a particular type on a class. Useful for very large classes with a specific type.
- Issue 46. Fixed threading deadlock situation with static faker initialization. Thanks Mpdreamz.
- Added
f => f.Generate(count, ()=> f.Phone.PhoneNumber())
helper for better fluency when filling properties withList
ofT
.
- Added
pt_PT
Portuguese (Portugal) locale.
- Allow
Faker<T>.RuleFor
rules to be overridden. Last set rule wins.
Faker<T>.AssertConfigurationIsValid
to help in unit testing scenarios.- Add
Internet.Ipv6
method to generate IPv6 addresses.
- Added
f => f.Commerce
onFaker
.
- Added
cz
/Czech locale - Updated
en
,nl
,pl
,sk
,sv
locales. - Realistic Dutch city naming
Randomizer.AlphaNumeric
added.Randomizer.Double
now accepts(min,max)
arguments- Added convenience
Randomizer
for randomDecimal
,Float
,Byte
,Bytes
,SByte
,Int
,UInt
,ULong
,Long
,Short
,UShort
,Char
andChars
.
- Newtonsoft Json 9.0.1 dependency support.
- 💥 .NET Core 1.0 RTM Support.
- Compatibility with .NET Standard 1.3 and .NET Core RC2.
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Clamp Randomizer maximum value to int.MaxValue.
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Locale update
- Date.Recent(0) generates random times for current date between midnight and now.
- New
System
data set for generating fake file names and mime-types. - Added
Date.Timespan
for random timespan values. - Added
System.Semver
for random semantic versions. - Added
System.Version
for random System.Version objects. - Added
Internet.ExampleEmail
for simple @example.com email generation. - Added
Finance.BitcoinAddress
for random bitcoin addresses. - BREAKING: Fake "seeded" data generated by Bogus may be different from previous versions.
- WARN: Address.City may have changed in some random seeds
- Roll-up Release for .NET Framework since last non-beta release.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Fixed index out of bounds bug in faker.Random.Word().
- Commerce.Department output may have changed as a result of this fix.
- Removed RuleFor(x = x.Prop, constantValue), was confusing the API.
- Added 0-arity RuleFor(x = x.Prop, () => someValue)
- Make f.UniqueIndex as int for convenience.
- Use generic RuleFor(x = x.Prop, constantValue).
- New RuleFor(x = x.Prop, constantValue)
- Support for Hashids.net: RuleFor(x = x.Id, f = f.Hashids.Encode())
- New f.UniqueIndex, useful for composing property values that require uniqueness.
- Roll-up Release for .NET Framework since v4.0.1.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- JvanderStad PR15: Lazy load Person. Avoids extra Seed.Next calls that may interfere with seeded content.
- JvanderStad PR16: Better address generation. Respects locale address formats.
- Added "dotnet5.4" moniker support.
- BREAKING: Fake "seeded" data generated by Bogus may be different from previous versions.
- Roll-up Release for .NET Framework since v3.0.6.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Bogus - Feature parity with faker.js.
- System module added. Generate random file names and extensions.
- Randomizer - Added Uuid().
- Locales Updated: en_GB, sv, sk, de_CH, en.
- Locales Added: id_ID, el, lv.
- Prevent apostrophes in return value of Internet.DomainWords
- Added more parameters for Image data set.
- BREAKING API METHODS:
- Lorem - Better API methods: Seeded tests based on "content" will fail due to upgrade.
- Roll-up Release for .NET Framework since v3.0.5.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Issue #13: Fixed StrictMode to exclude private fields.
- New Feature: Ignore property or field in StrictMode: Faker[Order].Ignore(o => o.OrderId).
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Roll-up Release for .NET Framework since v3.0.4.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Issue #13: StrictMode() now ignores read-only properties.
- Newtonsoft.Json v8 compatibility.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- Issue #12: Make Bogus thread-safe on Generate() and DataSets. Avoids threading issues in test runners.
- CoreCLR users please continue using latest beta release until CoreCLR is RTM.
- CoreCLR support (CoreCLR users please continue using latest beta release until CoreCLR is RTM.).
- Issue 10: Make Bogus work with fields also, not just properties. Fixes LINQPad issues.
- PR 9: quantumplation - Fixed typo in Lorem.Sentance() -> Lorem.Sentence()
- Generate US: SSN - Social Security Numbers.
- Generate Canada: SIN - Social Insurance Numbers.
- Generate Brazil: Cadastro de Pessoas Fisicas - CPF Numbers.
- Generate Finland: Henkilotunnus - Person ID numbers
- Generate Denmark: Det Centrale Personregister - Person ID numbers.
- Allow exclude values on Randomizer.Enum.
- Randomizer.Replace accepts '*' replace with letter or digit.
- Added Lorem.Letter(num).
- Can switch locale on Name: f.Name["en"].LastName()
- Added debug symbols to symbolsource.org.
- PR#6: Fixed lastname and empty list exception -salixzs
- Switch to semantic versioning at par with FakerJS.
- Adding generators: Date.Month(), Date.Weekday()
- Sentences using lexically correct "A foo bar."
- Added Spanish Mexico (es_MX) locale.
- Issue #2: Use latest Newtonsoft.Json 7.0.0.0 -Mpdreamz
- Includes Ireland (English) locale.
- Migrated to new FakerJS datafile format. Build system uses gulp file to directly import FakerJS locales.
- Faker.Parse() can now tokenize and replace handlebar formats.
- Added Faker.Hacker and Faker.Company properties.
- Added Custom separator on Lorem.Paragraph.
- Added Canada (French) (fr_CA) locale.
- Added Ukrainian (uk) locale.
- Added Ireland (en_IE) locale.
- Added Internet.Mac for mac addresses.
- Support for Canadian post/zip codes.
- Exposed Name.JobTitle, Name.JobDescriptor, Name.JobArea, Name.JobType
- Exposed Address.CountryCode
- Replace symbols in domain words so it generates output for all locales
- Support for gender names, but only for locales that support it. Russian('ru') but not English('en').
- Corrected abbreviation for Yukon to reflect its official abbreviation of "YT".
- Fixed instantiating a Person in a non-US locale. -antongeorgiev
- Added Georgian, Turkish, and Chinese (Taiwan) locales.
- Added Name.JobTitle()
- Added Internet.Url() and Internet.Protocol().
- Sync'd up with faker.js v2.1.5.
- Fixed bug in Faker.Person and Faker[T] that generates new person context after every new object.
- Added support for .FinishWith() for post-processing that runs after all rules but before returning new instance.
- Added Newtonsoft.Json as NuGet dependency.
- Minor changes, mostly XML doc update and Person moved from DataSet to Bogus namespace.
- Initial port from faker.js 2.1.4.