# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2026-10-19

### Added

- Add the `package_name` generator option, to override the Java package of the generated classes.
- Add missing methods of the `protoc` API to the generated classes.

### Changed

- Generate enums and oneof cases as `int` constants instead of Java enum types.
- Accept `.proto` files that do not declare `option optimize_for = LITE_RUNTIME;`.
- Accept `.proto` files that declare custom options.
- Rename some accessors to follow the `protoc` naming.
- Serialize messages to the same bytes as `protoc`.

### Fixed

- Fix `hasX()` of proto3 `optional` scalar fields set to zero.
- Fix the default value of unset proto2 enum fields.
- Fix the generated code for names that conflict with generated members and for large unsigned default values.
- Fix the repeated fields of numbers and booleans, which returned objects instead of primitive values.
- Fix built messages that were not immutable because their extensions could still be changed.
- Fix the loss of fields added by a newer version of the schema when an application that uses an older version modifies the message.
- Fix the reading of extension fields inside nested messages.
- Fix the parsing of a stream, which accepted a message with a missing required field.
- Fix the parsing of a malformed message nested in a group, which was accepted.
- Fix the build of an application that does not declare the `bytebuffer` and `collections` libraries.

## [1.0.1] - 2026-03-09

### Fixed

- Fix javadoc.

## [1.0.0] - 2026-03-04

### Added

- Fork Protobuf 4.33.5.
- Create `protoc-gen-microej` plugin.

---  
_Markdown_  
_Copyright 2026 MicroEJ Corp. All rights reserved._  
_This library is provided in source code for use, modification and test, subject to license terms._  
_Any modification of the source code will break MicroEJ Corp. warranties on the whole library._  
_Build: 7E4D1F7C_
