Skip to content

Releases: adriantoine/bloql

Changed bloql interface to avoid polluting `this.props` object and make it easier to access for posts

12 Oct 12:00
Compare
Choose a tag to compare
  • Changed bloql interface to avoid polluting this.props object and make it easier to access for posts:

    for PostList:

    {this.props.posts.edges.map(edge =>
    <a href={edge.node.meta.slug}>{edge.node.meta.title}</a>
    )}
    // becomes:
    {this.props.bloql.posts.map(post =>
    <a href={post.meta.slug}>{post.meta.title}</a>
    )}

    for Post (to avoid polluting this.props, in case a user wants to have pass his own post prop, we shouldn't override it):

    this.props.post
    // becomes:
    this.props.bloql.post

Added features to PostLists and internal refactoring

07 Oct 11:46
Compare
Choose a tag to compare
  • Added ability to dynamically update filters on the post list using bloql functions in an PostList component:

    // Filter a list of posts by tags or date
    this.props.bloql.setFilters({ tags: ['trip', 'usa'], startDate: '2015-01-01' });
    
    // Reset filters
    this.props.bloql.resetFilters();

    Example: https://github.com/adriantoine/bloql-examples/blob/master/filters/public/index.js#L10

  • Changed function names for better consistency (hopefully it will be the last time I do that):

    import { setComponent } from 'bloql/Post';
    import { setComponent } from 'bloql/PostList';
    
    // become =>
    
    import { createComponent } from 'bloql/Post';
    import { createComponent } from 'bloql/PostList';
  • Just like Post, PostList becomes a big customisable object, see previous release.

  • This is not part of this repo/package but examples have been updated to demonstrate more features: bloql-examples

Added feature and modularity in `Post` element

06 Oct 15:45
Compare
Choose a tag to compare
  • Added ability to update the slug of a post which will change the displayed post, just run this command in any bloql Post component:

    this.props.bloql.setSlug('my-post-slug');

    Example: https://github.com/adriantoine/bloql-examples/blob/master/basic/public/post.js#L11

  • Changed interface and function names:

    import createPost from 'bloql/Post';
    import createPostList from 'bloql/PostList';
    
    // become =>
    
    import { setComponent } from 'bloql/Post';
    import { setComponent } from 'bloql/PostList';
  • Post element is much easier to customise with your own routes or fragments, so if you require the Post component this way:

    import Post from 'bloql/Post';

    you'll be able to change almost anything from this post before calling its method setComponent with your component. More documentation and examples to be coming, for now you can have a look at: https://github.com/adriantoine/bloql/blob/master/src/client/Post.js
    This cool stuff is not yet available for PostList but that should be in the next release

0.8.3

06 Oct 10:26
Compare
Choose a tag to compare

Small code fix and added back webpack options

General refactoring

06 Oct 09:19
Compare
Choose a tag to compare
  • Fixed build process to use webpack

  • Fixed many issues with dependencies and multiple copies of React

  • Doesn't bundle react and react-relay packages to make files minimal and avoid build issues, they are now peer dependencies

  • Changed folder structure and way to get files:

    • On the server side:
    import bloql from 'bloql/server/middleware/express';
    
    // become =>
    
    import bloql from 'bloql/middleware/express';
    • On the client side:
    import { createPost } from 'bloql/client';
    import { createPostList } from 'bloql/client';
    
    // become =>
    
    import createPost from 'bloql/Post';
    import createPostList from 'bloql/PostList';
  • Created examples and updated README.md

Set database in another package to be more modular

16 Sep 01:21
Compare
Choose a tag to compare

Implemented start and after date filters

16 Sep 00:40
Compare
Choose a tag to compare

Simplified interface again and implemented post filters

15 Sep 16:31
Compare
Choose a tag to compare

Added Post component

12 Sep 00:28
Compare
Choose a tag to compare
Added Post component Pre-release
Pre-release

Added a post component to be able to create a post page.

Simplified interface

11 Sep 23:37
Compare
Choose a tag to compare
Simplified interface Pre-release
Pre-release

Simplified interface for an easier way to create components. Documentation still needs to be written.