• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Timeplan for 1.13.0?

Scheduled Pinned Locked Moved NodeBB Development
5 Posts 3 Posters 376 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • magnusvhendinM Offline
    magnusvhendinM Offline
    magnusvhendin Swedes
    wrote on last edited by
    #1

    As the subject states. Is there a timeplan for 1.13.0. As I understand there will be some big rewrites required for API-heavy plugins and themes.

    As an outsider it looks like most of the work is done on your part?
    https://github.com/NodeBB/NodeBB/milestone/87

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by baris
    #2

    1.13.0 Breaking chagnes are documented here https://community.nodebb.org/topic/14126/1-13-0-breaking-changes. If your plugin isn't affected by those there is no need for changes.

    Starting with 1.13.0 nodebb will support both async/await and callback style. So all existing plugins which use the callback style should still work.

    As for timeplan 🔜

    1 Reply Last reply
    1
  • oplik0O Offline
    oplik0O Offline
    oplik0 Plugin & Theme Dev Community Rep
    wrote on last edited by oplik0
    #3

    Starting with 1.13.0 nodebb will support both async/await and callback style. So all existing plugins which use the callback style should still work.

    Yup. It's the other way around that things break - if you use async/await in your plugin you can't run it on NodeBB <1.13. From experience writing plugin on a dev environment based on current master branch 🙂

    Unless you have a fallback with something like util.promisify... Hmm... Can a plugin get NodeBB version number from static:app.load hook (or get it using require)?

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #4

    You can get the version from package.json with require.main.require('./package.json').version

    It is a better idea to use

    "nbbpm": {
        "compatibility": "^1.13.0"
      }
    

    In your plugin's package.json if you are using async/await so that your plugin does not get listed for nodebbs below 1.13.0.

    1 Reply Last reply
    0
  • magnusvhendinM Offline
    magnusvhendinM Offline
    magnusvhendin Swedes
    wrote on last edited by
    #5

    Thank you @baris for the swift response. I have no need for backwards compatibility in my theme, so I think I will hold off on bigger changes.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development