Skip to content

Releases: malomalo/viking

2.0.0-rc1

13 Aug 14:29
Compare
Choose a tag to compare
2.0.0-rc1 Pre-release
Pre-release
Removed extended babel plugin

0.8.0

13 Jul 22:50
Compare
Choose a tag to compare

Major Changes:

  • added Viking.View
  • extending a Viking.View merge events together
  • added template support to Viking.View via renderTemplate
  • added support for hasMany relationships in FormBuilder.fieldsFor
  • setting a belongsTo relation ship set/unsets the corresponding foreign_key
  • added Viking.Model.create and Viking.Model.findOrCreateBy

Minor Changes:

  • Viking.Model.unset now allows you to unset a hasMany relationship
  • Viking.FormBuilder now uses the baseModel for the name for use with STI models
  • Viking.FormBuilder#fieldsFor now uses the baseModel for the name for use with STI models
  • JSON data type sets the baseModel to itself
  • added imageTag to Viking.View helpers
  • added render to Viking.View helpers
  • FormBuilder.fieldsFor accepts a model, collection, or array of records
  • Viking.Controller now has controllerName

Bugfixes:

  • Fixed issue with custom name attribute on Viking.View.Helpers.textField
  • Fixed issue with custom name attribute on Viking.View.Helpers.select
  • Fixed checkBox not having an escape option

0.7.0

01 Jul 18:35
Compare
Choose a tag to compare
Major Changes:
  • added Viking.View.Helpers::mailTo url helper
  • Viking.Collection#order now takes (order, options)
  • Viking.Collection#order now calls Viking.Collection#orderChanged when changed
  • Viking.sync added, converts objects via .toParam() as opposed to letting jQuery use $.param()
  • Viking.Model and Viking.Collection now use Viking.sync
  • global urlFor helper added
  • Viking.View.Helpers.linkTo helper added
  • Viking.Model.coercions now supports Array data types via options
  • Added CheckBoxGroupBuilder and Viking.View.checkBoxGroup
  • Added FromBuilder#checkBoxGroup helper
Minor Changes:
  • Viking.Coercions.Number.load now coerces an empty string to null
Bugfixes:
  • Viking.View.Helpers::labelTag now accepts the escape paramater
  • Viking.View.Helpers::label now accepts the escape paramater

v0.6.0

05 Apr 23:22
Compare
Choose a tag to compare
Major Changes:
  • FormBuilder no longer accepts content as an argument
  • FormBuilder#render has been removed
  • Viking.Viking.Helpers.formFor is now responsible for output the form tags
  • Added FormBuilder.fieldsFor that acts similar to Rail's fields_for
  • Added array type coercion
  • Added inital support for polymorphic belongsTo associations in Viking.Model
Minor Changes:
  • Viking.Model#set now changes the prototype of the model to type if type was passed
  • Viking.Model#set initializes new hasMany associations when set is called with new type
  • Added Viking.View.Helpers.timeTag
  • All form helpers allow the name to be passed in as an option to override the generated name
  • Viking.View.tagNameForModelAttribute now accepts namespace as an option
  • setting inheritanceAttribute = false on a Model disableds STI
  • added Viking.View.Helpers.numberField and Viking.View.Helpers.numberFieldTag helpers
  • JSON data type coercions now allows the key type
Bugfixes:
  • Router#start now takes options and passes them to Backbone.history.start
  • Model#paramRoot returns the baseModel.modelName when used with STI
  • Array.toParam and Array.toQuery no longer show up in array iterators
  • if default type set on an STI model, initializes with that model
  • Fixed issue when using STI and changing type the modelName was not being updated

v0.5.0

17 Mar 19:22
Compare
Choose a tag to compare
  • added FormBuilder helper
  • added Viking.View.Helpers.formFor helper for creating and rendering FormBuilders
  • belongsTo: ['api_key'] assumes ApiKey is the class not Api_key

v0.4.0

03 Mar 18:58
Compare
Choose a tag to compare
  • Inital support for STI
  • Viking.Model#url now uses #toParam to get the objects key for the url
  • Removed CSRF token injection for AJAX request. Can added on a per project basis
  • updateAttribute & updateAttributes moved from Backbone.Model to Viking.Model

v0.3.0

27 Feb 03:25
Compare
Choose a tag to compare
  • Added Viking.View.Helpers to make rendering forms in templates easier.
  • Updated to test against Backbone v1.1.2, jQuery v2.1.0, & Underscore.js 1.4.4

v0.2.0

22 Feb 00:08
Compare
Choose a tag to compare

Initial Relase