axiodb 18.1.2 → 18.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/VERSION CHANGED
@@ -1 +1 @@
1
- 18.1.2
1
+ 18.1.4
@@ -2,24 +2,21 @@ package cmd
2
2
 
3
3
  import (
4
4
  "fmt"
5
- "os"
6
- "strings"
7
5
 
8
6
  "github.com/spf13/cobra"
9
7
  )
10
8
 
9
+ var cliVersion = "18.1.4"
10
+
11
11
  var versionCmd = &cobra.Command{
12
12
  Use: "version",
13
13
  Short: "Print the CLI version",
14
14
  Run: func(cmd *cobra.Command, args []string) {
15
15
  short, _ := cmd.Flags().GetBool("short")
16
-
17
- version := readVersion()
18
-
19
16
  if short {
20
- fmt.Println(version)
17
+ fmt.Println(cliVersion)
21
18
  } else {
22
- fmt.Printf("axiodb-cli version %s\n", version)
19
+ fmt.Printf("axiodb-cli version %s\n", cliVersion)
23
20
  }
24
21
  },
25
22
  }
@@ -28,14 +25,3 @@ func init() {
28
25
  versionCmd.Flags().Bool("short", false, "Print only the version number")
29
26
  rootCmd.AddCommand(versionCmd)
30
27
  }
31
-
32
- func readVersion() string {
33
- data, err := os.ReadFile("VERSION")
34
- if err != nil {
35
- data, err = os.ReadFile("../VERSION")
36
- if err != nil {
37
- return "unknown"
38
- }
39
- }
40
- return strings.TrimSpace(string(data))
41
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axiodb",
3
- "version": "18.1.2",
3
+ "version": "18.1.4",
4
4
  "description": "The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platform issues—pure JavaScript from npm install to production.",
5
5
  "main": "./lib/config/DB.js",
6
6
  "types": "./lib/config/DB.d.ts",