home.social

#appendonlylog — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #appendonlylog, aggregated by home.social.

  1. 🥳 JavaScript Database (JSDB)¹ version 7.0.0 released

    - *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:

    ```js
    const settingsTable = db.settings['__table__']
    const JSTable = settingsTable.constructor

    settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
    switch (keypath) {
    case 'servers.serverPoolSize':
    console.info('New server pool size requested', value)
    this.updateServerPool()
    break
    // etc.
    }
    })
    ```

    This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.

    To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials

    For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials

    For another example, see: codeberg.org/small-tech/jsdb/#

    Full change log: codeberg.org/small-tech/jsdb/s

    Enjoy!

    💕

    ¹ codeberg.org/small-tech/jsdb#r
    ² catalyst.small-web.org
    ³ kitten.small-web.org

    #JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst

  2. 🥳 JavaScript Database (JSDB)¹ version 7.0.0 released

    - *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:

    ```js
    const settingsTable = db.settings['__table__']
    const JSTable = settingsTable.constructor

    settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
    switch (keypath) {
    case 'servers.serverPoolSize':
    console.info('New server pool size requested', value)
    this.updateServerPool()
    break
    // etc.
    }
    })
    ```

    This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.

    To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials

    For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials

    For another example, see: codeberg.org/small-tech/jsdb/#

    Full change log: codeberg.org/small-tech/jsdb/s

    Enjoy!

    💕

    ¹ codeberg.org/small-tech/jsdb#r
    ² catalyst.small-web.org
    ³ kitten.small-web.org

    #JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst

  3. 🥳 JavaScript Database (JSDB)¹ version 7.0.0 released

    - *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:

    ```js
    const settingsTable = db.settings['__table__']
    const JSTable = settingsTable.constructor

    settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
    switch (keypath) {
    case 'servers.serverPoolSize':
    console.info('New server pool size requested', value)
    this.updateServerPool()
    break
    // etc.
    }
    })
    ```

    This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.

    To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials

    For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials

    For another example, see: codeberg.org/small-tech/jsdb/#

    Full change log: codeberg.org/small-tech/jsdb/s

    Enjoy!

    💕

    ¹ codeberg.org/small-tech/jsdb#r
    ² catalyst.small-web.org
    ³ kitten.small-web.org

    #JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst

  4. 🥳 JavaScript Database (JSDB)¹ version 7.0.0 released

    - *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:

    ```js
    const settingsTable = db.settings['__table__']
    const JSTable = settingsTable.constructor

    settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
    switch (keypath) {
    case 'servers.serverPoolSize':
    console.info('New server pool size requested', value)
    this.updateServerPool()
    break
    // etc.
    }
    })
    ```

    This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.

    To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials

    For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials

    For another example, see: codeberg.org/small-tech/jsdb/#

    Full change log: codeberg.org/small-tech/jsdb/s

    Enjoy!

    💕

    ¹ codeberg.org/small-tech/jsdb#r
    ² catalyst.small-web.org
    ³ kitten.small-web.org

    #JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst

  5. 🥳 JavaScript Database (JSDB)¹ version 7.0.0 released

    - *Breaking change* JSTable.PERSIST event now uses a parameter object with properties for `type`, `keypath`, `value`, `change`, and `table`. This should make listening for events on your databases much nicer to author. e.g., a snippet from Catalyst² I’m working on:

    ```js
    const settingsTable = db.settings['__table__']
    const JSTable = settingsTable.constructor

    settingsTable.addListener(JSTable.PERSIST, ({ keypath, value }) => {
    switch (keypath) {
    case 'servers.serverPoolSize':
    console.info('New server pool size requested', value)
    this.updateServerPool()
    break
    // etc.
    }
    })
    ```

    This new version of JSDB is not in the latest Kitten³ yet as it is a breaking change and I want to make sure I update my sites/apps first if needed. I should have it integrated tomorrow.

    To see the simple use case for JSDB in Kitten (the default untyped database that’s easy to get started with and perfect for quick experiments, little sites, etc.), see: kitten.small-web.org/tutorials

    For a more advanced tutorial for creating your own typed databases in Kitten, see the Database App Modules tutorial: kitten.small-web.org/tutorials

    For another example, see: codeberg.org/small-tech/jsdb/#

    Full change log: codeberg.org/small-tech/jsdb/s

    Enjoy!

    💕

    ¹ codeberg.org/small-tech/jsdb#r
    ² catalyst.small-web.org
    ³ kitten.small-web.org

    #JavaScriptDatabase #JavaScript #appendOnlyLog #JS #JSDB #JSDBUpdates #SmallTech #SmallWeb #Kitten #Catalyst