Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
99 lines (75 loc) · 5.34 KB

File metadata and controls

99 lines (75 loc) · 5.34 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Changelog

2.0.0 (22/9/2015)

  • Breaking change The base renderer's init no longer accepts the RENDER_URL setting as an argument. The url is now resolved during calls, rather than initialisation.
  • When used in companion with Django, settings will now be dynamically fetched rather than bound on initialisation. This enables a codebase to be more easily controlled from a test suite
  • Updated docs regarding front-end integration

1.0.0 (13/7/2015)

  • Removed the webpack integration. While it can be initially convenient, it tends to introduce more problems than it solves. The repo contains an example illustrating how to implement self-mounting components which provide similar functionality to the former webpack integration.
  • Replaced the js-host dependency with an externally-managed render server.
  • Added a renderer hook on render_component. Enabling you to override the default which assumes render-react

0.13.1 (16/5/2015)

  • Fixed a potential path issue in config files
  • Replaced the webpack-service dependency with webpack-wrapper.

0.8.0 (26/1/2015)

  • Boosting render performance by using a dedicated render server.
  • Added a new setting, DJANGO_REACT['RENDERER'], which is a string denoting an import path to a callable object which returns a on object with a render method. By default it points to the new render server, 'django_react.render_server.ReactRenderServer'. The legacy renderer is useable by setting DJANGO_REACT['RENDERER'] = 'django_react.renderer.ReactRenderer'.

0.7.0 (2/1/2015)

  • Changed django_react.exceptions.ReactComponentMissingSourceAttribute to django_react.exceptions.ReactComponentMissingSource
  • django_react.react.render is now django_react.render_component
  • Updated the django-webpack dependency to 2.0.0
  • django_react.models.ReactBundle is now django_react.ReactBundle
  • django_react.models.ReactComponent is now django_react.ReactComponent
  • The Python<->JS bridge used to render components now relies on a --serialized-props-file argument, formerly it was --serialized-props.
  • Switched the JSX loader to a fork which improves the debug information provided during error handling

0.6.0 (24/12/2014)

  • The NODE_ENV environment setting is now controlled by the DJANGO_REACT['DEBUG'] setting. Activating it will provides some improvements to the rendering performance.

0.5.0 (14/12/2014)

  • Renamed django_react.exceptions.PropSerialisationError to django_react.exceptions.PropSerializationError.
  • Rolled the bundling functionality out into a more easily overridable interface. You can now define a bundle attribute on ReactComponent inheritors which should be an extended django_webpack.models.WebpackBundle.
  • Renamed the following attributes on ReactComponent:
    • entry is now source
    • library is now variable
  • Renamed the get_library method on ReactComponent to get_variable
  • Removed the following methods on ReactComponent:
    • get_serialised_props_hash
    • get_component_id
    • get_react_variable
    • get_component_name
    • has_props
  • The render_* methods now use standard Django templates where possible.
  • Removed the render_to_string and render_to_static_markup methods from django_react.react. In their place, use django_react.react.render.
  • The react external can now be configured on a per-bundle basis, or globally by using the DJANGO_REACT['REACT_EXTERNAL'] setting.
  • Updated django-node and django-webpack dependencies to the latest.
  • Added a test suite and harness.
  • Added basic documentation.

0.4.0 (11/12/2014)

  • Fixed a bug where errors caused during a component's prop serialization could silently fail.
  • Excised the bundling tooling into a standalone app, django_webpack
  • Renamed SerialisationException to PropSerializationError.
  • Renamed RenderException to RenderingError.
  • Renamed the django_react.utils module to django_react.react.
  • ReactComponent.render is now ReactComponent.render_to_string
  • ReactComponent.render_static is now ReactComponent.render_to_static_markup
  • ReactComponent.get_component_variable is now ReactComponent.get_library.
  • Moved the Webpack configuration into the ReactComponent class.

0.3.0 (3/12/2014)

  • django_react.exceptions.ReactComponentSourceFileNotFound is now django_react.exceptions.SourceFileNotFound
  • django_react.exceptions.ReactComponentRenderToStringException is now django_react.exceptions.RenderException
  • django_react.exceptions.ReactComponentBundleException is now django_react.exceptions.BundleException
  • django_react.models.ReactComponent now has additional methods: generate_path_to_bundled_source, write_bundled_source_file, generate_bundled_source_file, get_rel_path_to_bundled_source, and get_url_to_bundled_source.
  • django_react.utils.bundle no longer accepts a ReactComponent as an argument, it now takes entry and library.
  • django_react.utils.render no longer accepts a ReactComponent as an argument, it now takes path_to_source, serialised_props, and to_static_markup.
  • django_react/render.js no longer accepts the --path-to-component argument, instead it takes --path-to-source.

0.2.0 (3/12/2014)

  • Replaced the post-install step in setup.py with django-node's dependency and package resolver.

0.1.0 (2/12/2014)

  • Initial release
Morty Proxy This is a proxified and sanitized view of the page, visit original site.