Skip to content

Commit 0172b3b

Browse files
committed
Fix non-camelized get/set useState names for nested types
1 parent 136cb27 commit 0172b3b

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [0.0.12] - 2025-04-15
2+
3+
- Fix non-camelized get/set useState names for nested types
4+
- Do not include Model/Entity classes in inputs types to simplify things for now
5+
16
## [0.0.11] - 2025-04-08
27

38
- Print out stringified errors for unexpected errors

src/typescript_react_command_form_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def name
203203
first, *rest = path
204204

205205
first = Util.camelize(first)
206-
rest = rest.map { |part| Util.camelize(part) }
206+
rest = rest.map { |part| Util.classify(part) }
207207

208208
[first, *rest].join
209209
end

version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Foobara
22
module Generators
33
module TypescriptReactCommandFormGenerator
4-
VERSION = "0.0.11".freeze
4+
VERSION = "0.0.12".freeze
55

66
local_ruby_version = File.read("#{__dir__}/.ruby-version").chomp
77
local_ruby_version_minor = local_ruby_version[/\A(\d+\.\d+)\.\d+\z/, 1]

0 commit comments

Comments
 (0)