Skip to content

Commit 8b80efa

Browse files
committed
updated change log. Improved #62
1 parent f4a27dd commit 8b80efa

File tree

3 files changed

+55
-3
lines changed

3 files changed

+55
-3
lines changed

change-log.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## 1.3alpha - 2019-01-16
8+
### Security
9+
+ [#102](https://github.com/hyperstack-org/hyperstack/issues/102) Security hole in find_record method filled.
10+
11+
### Added
12+
+ [#62](https://github.com/hyperstack-org/hyperstack/issues/62) `set_jq` method to capture element ref as a jQuery object
13+
+ [#70](https://github.com/hyperstack-org/hyperstack/issues/70) New syntax and implementation for "while loading".
14+
+ [#72](https://github.com/hyperstack-org/hyperstack/issues/72) Event handlers (i.e. `on(:click)`) can be specified at the component class level.
15+
+ [#73](https://github.com/hyperstack-org/hyperstack/issues/73) `before_render` (runs before mounting & before updating) and `after_render` (runs after_mounting & after_updating)
16+
+ [#74](https://github.com/hyperstack-org/hyperstack/issues/74) Alternative `param_accessor_style :accessors` option: Creates an instance method for each param. I.e. `param :foo` will add a `foo` method to the component.
17+
+ [#77](https://github.com/hyperstack-org/hyperstack/issues/77) Ruby like `rescues` component call back. Define error handling at the component level - uses react error boundries under the hood.
18+
+ [#85](https://github.com/hyperstack-org/hyperstack/issues/85) Add `pluralize` method to component. Works like Rails `pluralize` view helper.
19+
+ [#89](https://github.com/hyperstack-org/hyperstack/issues/89) Automatically create ActiveRecord inverse relationships as needed. Previously both sides of the relationship had to be declared.
20+
+ [#90](https://github.com/hyperstack-org/hyperstack/issues/90) Automatically load `config/initializers/inflections.rb` if present
21+
+ [#99](https://github.com/hyperstack-org/hyperstack/issues/99) Better diagnostics for server access violations and other errors
22+
23+
### Changed
24+
+ [#62](https://github.com/hyperstack-org/hyperstack/issues/62) jQuery now accessed by global `jQ` method (replacing `DOM` class)
25+
+ [#68](https://github.com/hyperstack-org/hyperstack/issues/68) Renamed `before_receives_props` to `before_new_params`
26+
+ [#91](https://github.com/hyperstack-org/hyperstack/issues/91) Rename `triggers` to `fires`
27+
28+
### Deprecated
29+
+ [#70](https://github.com/hyperstack-org/hyperstack/issues/70) Deprecated original `while_loading` method in favor of the `WhileLoading` mixin.
30+
31+
### Fixed
32+
+ [#106](https://github.com/hyperstack-org/hyperstack/issues/106) updated unparser, mini-racer and libv8 versions
33+
+ [#76](https://github.com/hyperstack-org/hyperstack/issues/76) Regression: Hotloader was not remounting lifecycle hooks.
34+
+ [#59](https://github.com/hyperstack-org/hyperstack/issues/59) Component built in event names (i.e. `click`) were not working with `triggers` (aka `fires`) macro.
35+
+ [#63](https://github.com/hyperstack-org/hyperstack/issues/63) Could not pass a component class as a param.
36+
+ [#64](https://github.com/hyperstack-org/hyperstack/issues/64) Router's render method would not accept a simple string.
37+
+ [#65](https://github.com/hyperstack-org/hyperstack/issues/65) `observe` and `mutate` Observer methods were returning nil.
38+
+ [#67](https://github.com/hyperstack-org/hyperstack/issues/67) Hyper Model: `while_loading` was not working with loading scopes. This is is also working properly with the new `WhileLoading` mixin.
39+
+ [#75](https://github.com/hyperstack-org/hyperstack/issues/75) Router `redirect` was not working in prerendering.
40+
+ [#78](https://github.com/hyperstack-org/hyperstack/issues/78) Hyper Model: client scope optimization was not working if `all` scope is dummy or unknown.
41+
+ [#79](https://github.com/hyperstack-org/hyperstack/issues/79) Hyper Model: `count` of scope was unnecessarily replaced with a dummy "1".
42+
+ [#81](https://github.com/hyperstack-org/hyperstack/issues/81) Hyper Model: Comparing a unloaded scope with a loaded empty scope was returning TRUE
43+
+ [#82](https://github.com/hyperstack-org/hyperstack/issues/82) Hyper Model: Loading a parent scope was not triggering client side scoping of children
44+
+ [#88](https://github.com/hyperstack-org/hyperstack/issues/88) Models were not using pluralize when computing inverse names
45+
+ [#97](https://github.com/hyperstack-org/hyperstack/issues/97) Policies were not guaranteed to load in non-server environments (i.e. rake tasks.)
46+
+ [#98](https://github.com/hyperstack-org/hyperstack/issues/98) Could not use `regulate_class_connection` outside of policy classes.
47+
+ [#101](https://github.com/hyperstack-org/hyperstack/issues/101) Hyper Operation validation errors were not reported to client properly
48+
+ [#105](https://github.com/hyperstack-org/hyperstack/issues/105) Hyper Model records were not persisted in the order created

ruby/hyper-component/lib/hyperstack/ext/component/element.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,15 @@ module Internal
5050
module Component
5151
module InstanceMethods
5252
def set_jq(var)
53-
->(val) { set(var).call(JQ[val]) }
53+
->(val) { set(var).call(jQ[val]) }
5454
end
5555
end
5656
end
5757
end
5858
end
5959

60-
JQ = Element
60+
class Object
61+
def jQ
62+
Element
63+
end
64+
end

ruby/hyper-component/spec/client_features/dsl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ class Foo
249249
class Foo
250250
include Hyperstack::Component
251251
include Hyperstack::State::Observable
252-
after_mount { mutate @my_node_id = JQ[dom_node].id }
252+
after_mount { mutate @my_node_id = jQ[dom_node].id }
253253
render do
254254
SPAN(id: 'foo') { "my id is '#{@my_node_id}'" }
255255
end

0 commit comments

Comments
 (0)