Changelog
v3.0.0-rc05
Released October 3, 2017. Previous release: v3.0.0-rc04. Migration guide.
Added
-
BadDataException.BadDataException(IReadingContext) -
Configuration.InjectionCharacters -
Configuration.SanitizeForInjection -
CsvFieldReader.SetRawRecordStart(int) -
CsvHelperException.CsvHelperException(IReadingContext) -
CsvHelperException.CsvHelperException(IWritingContext) -
CsvSerializer.SanitizeForInjection(string) -
CsvWriter.GetTypeForRecord<T>(T) -
DynamicRecordCreator -
DynamicRecordWriter -
ExpandoObjectRecordWriter -
ExpressionManager -
IFieldReader.SetRawRecordStart(int) -
IReadingContext -
ISerializerConfiguration.InjectionCharacters -
ISerializerConfiguration.Quote -
ISerializerConfiguration.SanitizeForInjection -
IWritingContext -
MemberMapCollection.AddMembers(ClassMap) -
MissingFieldException.MissingFieldException(IReadingContext) -
ObjectRecordCreator -
ObjectRecordWriter -
ParserException.ParserException(IReadingContext) -
PrimitiveRecordCreator -
PrimitiveRecordWriter -
ReaderException.ReaderException(IReadingContext) -
ReadingContext.CreateRecordFuncs -
ReadingContext.FieldBuilder -
ReadingContext.HydrateRecordActions -
ReadingContext.NamedIndexCache -
ReadingContext.NamedIndexes -
ReadingContext.RawRecordBuilder -
ReadingContext.ReadingContext(TextReader, Configuration, bool) -
ReadingContext.RecordBuilder -
ReadingContext.ReusableMemberMapData -
ReadingContext.TypeConverterOptionsCache -
RecordCreator -
RecordCreatorFactory -
RecordHydrator -
RecordManager -
RecordWriter -
RecordWriterFactory -
ValidationException.ValidationException(IReadingContext) -
WriterException.WriterException(IWritingContext) -
WritingContext.ReusableMemberMapData -
WritingContext.TypeActions -
WritingContext.TypeConverterOptionsCache -
WritingContext.WritingContext(TextWriter, Configuration, bool)
Changed
-
BadDataException.BadDataException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
BadDataException.BadDataException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
Configuration.BadDataFoundCallbackBreakingThe type changed from Action<ReadingContext> to Action<IReadingContext>.
-
Configuration.HeaderValidatedCallbackBreakingThe type changed from Action<bool, string[], int, ReadingContext> to Action<bool, string[], int, IReadingContext>.
-
Configuration.MissingFieldFoundCallbackBreakingThe type changed from Action<string[], int, ReadingContext> to Action<string[], int, IReadingContext>.
-
CsvFieldReader.ContextBreakingThe type changed from IFieldReaderContext to IReadingContext.
-
CsvHelperException.CsvHelperException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
CsvHelperException.CsvHelperException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
CsvHelperException.CsvHelperException(IWritingContext, string)BreakingThe parameters changed from (WritingContext, string) to (IWritingContext, string).
-
CsvHelperException.CsvHelperException(IWritingContext, string, Exception)BreakingThe parameters changed from (WritingContext, string, Exception) to (IWritingContext, string, Exception).
-
CsvHelperException.ReadingContextBreakingThe type changed from ReadingContext to IReadingContext.
-
CsvHelperException.WritingContextBreakingThe type changed from WritingContext to IWritingContext.
-
CsvParser.ContextBreakingThe type changed from IParserContext to IReadingContext.
-
CsvReader.CanRead(MemberMap)BreakingThe signature changed.
-
CsvReader.CanRead(MemberReferenceMap)BreakingThe signature changed.
-
CsvReader.ContextBreakingThe type changed from IReaderContext to IReadingContext.
-
CsvSerializer.ContextBreakingThe type changed from WritingContext to IWritingContext.
-
CsvWriter.CanWrite(MemberMap)BreakingThe signature changed.
-
CsvWriter.ContextBreakingThe type changed from WritingContext to IWritingContext.
-
IFieldReader.ContextBreakingThe type changed from IFieldReaderContext to IReadingContext.
-
IParser.ContextBreakingThe type changed from IParserContext to IReadingContext.
-
IParserConfiguration.BadDataFoundCallbackBreakingThe type changed from Action<ReadingContext> to Action<IReadingContext>.
-
IReaderConfiguration.HeaderValidatedCallbackBreakingThe type changed from Action<bool, string[], int, ReadingContext> to Action<bool, string[], int, IReadingContext>.
-
IReaderConfiguration.MissingFieldFoundCallbackBreakingThe type changed from Action<string[], int, ReadingContext> to Action<string[], int, IReadingContext>.
-
IReaderRow.ContextBreakingThe type changed from IReaderContext to IReadingContext.
-
ISerializer.ContextBreakingThe type changed from WritingContext to IWritingContext.
-
IWriterRow.ContextBreakingThe type changed from WritingContext to IWritingContext.
-
MissingFieldException.MissingFieldException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
MissingFieldException.MissingFieldException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
ParserException.ParserException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
ParserException.ParserException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
ReaderException.ReaderException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
ReaderException.ReaderException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
ReadingContextBreakingThe type no longer implements IFieldReaderContext, IParserContext, IReaderContext. The type now implements IReadingContext.
-
ReadingContext.BufferThe property now has a set accessor.
-
ReadingContext.BufferPositionThe property now has a set accessor.
-
ReadingContext.BytePositionThe property now has a set accessor.
-
ReadingContext.CThe property now has a set accessor.
-
ReadingContext.CharPositionThe property now has a set accessor.
-
ReadingContext.CharsReadThe property now has a set accessor.
-
ReadingContext.ClearCache(Caches)Now virtual.
-
ReadingContext.ColumnCountThe property now has a set accessor.
-
ReadingContext.CurrentIndexThe property now has a set accessor.
-
ReadingContext.FieldEndPositionThe property now has a set accessor.
-
ReadingContext.FieldStartPositionThe property now has a set accessor.
-
ReadingContext.HasBeenReadThe property now has a set accessor.
-
ReadingContext.HeaderRecordThe property now has a set accessor.
-
ReadingContext.IsFieldBadThe property now has a set accessor.
-
ReadingContext.LeaveOpenThe property now has a set accessor.
-
ReadingContext.RawRecordEndPositionThe property now has a set accessor.
-
ReadingContext.RawRecordStartPositionThe property now has a set accessor.
-
ReadingContext.RawRowThe property now has a set accessor.
-
ReadingContext.RecordThe property now has a set accessor.
-
ReadingContext.RowThe property now has a set accessor.
-
ValidationException.ValidationException(IReadingContext, string)BreakingThe parameters changed from (ReadingContext, string) to (IReadingContext, string).
-
ValidationException.ValidationException(IReadingContext, string, Exception)BreakingThe parameters changed from (ReadingContext, string, Exception) to (IReadingContext, string, Exception).
-
WriterException.WriterException(IWritingContext, string)BreakingThe parameters changed from (WritingContext, string) to (IWritingContext, string).
-
WriterException.WriterException(IWritingContext, string, Exception)BreakingThe parameters changed from (WritingContext, string, Exception) to (IWritingContext, string, Exception).
-
WritingContextBreakingThe type no longer implements ISerializerContext, IWriterContext. The type now implements IWritingContext.
-
WritingContext.HasHeaderBeenWrittenThe property now has a set accessor.
-
WritingContext.HasRecordBeenWrittenThe property now has a set accessor.
-
WritingContext.LeaveOpenThe property now has a set accessor.
-
WritingContext.RowThe property now has a set accessor.
Removed
-
BadDataException.BadDataException(ReadingContext)Breaking -
CsvHelperException.CsvHelperException(ReadingContext)Breaking -
CsvHelperException.CsvHelperException(WritingContext)Breaking -
CsvReader.CreateConstructorArgumentExpressionsForMapping(ClassMap, List<Expression>)Breaking -
CsvReader.CreateDynamic()Breaking -
CsvReader.CreateFieldExpression(MemberMap)Breaking -
CsvReader.CreateFillRecordAction<T>()Breaking -
CsvReader.CreateFuncForObject(Type)Breaking -
CsvReader.CreateFuncForPrimitive(Type)Breaking -
CsvReader.CreateMemberBindingsForMapping(ClassMap, Type, List<MemberBinding>)Breaking -
CsvReader.CreateReadRecordFunc(Type)Breaking -
CsvReader.CreateRecord(Type)Breaking -
CsvReader.CreateRecord<T>()Breaking -
CsvReader.FillRecord<T>(T)Breaking -
CsvReader.GetFillRecordAction<T>()Breaking -
CsvReader.GetReadRecordFunc(Type)Breaking -
CsvReader.GetReadRecordFunc<T>()Breaking -
CsvWriter.AddMembers(MemberMapCollection, ClassMap)Breaking -
CsvWriter.CombineDelegates<T>(IEnumerable<Action<T>>)Breaking -
CsvWriter.CreateActionForDynamic<T>(IDynamicMetaObjectProvider)Breaking -
CsvWriter.CreateActionForExpandoObject<T>(ExpandoObject)Breaking -
CsvWriter.CreateActionForObject<T>(Type)Breaking -
CsvWriter.CreateActionForPrimitive<T>(Type)Breaking -
CsvWriter.CreateMemberExpression(Expression, ClassMap, MemberMap)Breaking -
CsvWriter.CreateWriteRecordAction<T>(Type, T)Breaking -
CsvWriter.GetWriteRecordAction<T>(T)Breaking -
IFieldReaderContextBreaking -
IParserContextBreaking -
IReaderContextBreaking -
ISerializerContextBreaking -
IWriterConfiguration.QuoteBreaking -
IWriterContextBreaking -
MissingFieldException.MissingFieldException(ReadingContext)Breaking -
ParserException.ParserException(ReadingContext)Breaking -
ReaderException.ReaderException(ReadingContext)Breaking -
ValidationException.ValidationException(ReadingContext)Breaking -
WriterException.WriterException(WritingContext)Breaking
Commits
- 65274e57 Version bump.
- a7fee65d Changed contexts to interfaces.
- 28a2e3f5 Updated comments.
- 6f8a6d5f Renamed injection code to remove Excel from naming.
- 43de8d3a Added license headers.
- 434e6ca6 Added Excel injection sanitization.
- c08cdaa2 Fixed issues with parsing when TrimOptions are enabled but there is no spaces to trim.
- eb50ebca Moved expression logic into separate classes.