extensions and plugins with version number (API or JSON)

extensions and plugins with version number (API or JSON)

tacman1123tacman1123 Posts: 198Questions: 46Answers: 1

https://datatables.net/download/

Is there a JSON file that lists this same data (extension/plugin, description, version number)? I've been adding them to my library one at a time, but would like to automate it, and also have a way to check that my version is current.

Thx.

Answers

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951

    Yes, check this thread.

    Kevin

  • tacman1123tacman1123 Posts: 198Questions: 46Answers: 1

    Thanks. https://datatables.net/feeds/versions is close to what I need, but really I want the primary ESM package name,
    (e.g. datatables.net-scroller-bs5) and the latest version. Optional css would be helpful.

    Unfortunately, the npm names aren't really available in the feed, they are the reference key I was hoping to get.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    At the moment, no - you need to translate the extension name to the npm package name. It is a good point though, a feed with the npm package names at their latest version could be useful.

    I'll take a look into that.

    Allan

  • tacman1123tacman1123 Posts: 198Questions: 46Answers: 1

    In light of the 2.0 release, can you please revisit this? I'm getting an ".apply" error, but probably related to incompatible versions.

    Here's some of that I use, is there a pattern I can follow for what version I should be using?

        "bootstrap": "^5.3.3",
        "datatables.net": "^2.0.1",
        "datatables.net-bs5": "^2.0.1",
        "datatables.net-buttons-bs5": "^3.0.0",
        "datatables.net-colreorder": "^2.0.0",
        "datatables.net-colreorder-bs5": "^2.0.0",
        "datatables.net-datetime": "^1.5.2",
        "datatables.net-fixedcolumns-bs5": "^5.0.0",
        "datatables.net-fixedheader-bs5": "^4.0.0",
        "datatables.net-responsive": "^3.0.0",
        "datatables.net-responsive-bs5": "^3.0.0",
        "datatables.net-scroller": "^2.3.0",
        "datatables.net-scroller-bs5": "^2.3.0",
    

    and elsewhere

          "datatables.net-plugins/i18n/en-GB.mjs": "^1.13.6",
          "datatables.net-bs5": "^1.13.8",
          "datatables.net-buttons-bs5": "^2.4.2",
          "datatables.net-responsive-bs5": "^2.5.0",
          "datatables.net-scroller-bs5": "^2.3.0",
          "datatables.net-searchpanes-bs5": "^2.2.0",
          "datatables.net-searchbuilder-bs5": "^1.6.0",
          "datatables.net-select-bs5": "^1.7.0"
    

    I'm getting this error:

    [warning] datatables.net-scroller-bs5 requires datatables.net-bs5@1.11 - 2 but version 2.0.2 is installed.
    [warning] datatables.net-scroller-bs5 requires datatables.net-bs5@1.11 - 2 but version 2.0.2 is installed.
    [warning] datatables.net-scroller requires datatables.net@1.11 - 2 but version 2.0.2 is installed.
    [warning] datatables.net-scroller requires datatables.net@1.11 - 2 but version 2.0.2 is installed.
    
Sign In or Register to comment.