2.0.10 • Published 1 year ago

atils v2.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

! Discontinuation Notice

As of atils@2.0.10, atils will be discontinued as I will be more focused on other projects. The major changes that would have been placed with atils@3.0.0 are as follows:

  • Interface will receive a new overhaul and will now be able to parse through files.
    • The concept of this can be viewed here.
  • New Enum types.
    • This will be continued through a different project that I'll release later.
    • forcetype (the new Interface concept) will not receive updates as they will be updated within the new project.
  • Better formatting + documentation.
    • atils will remain an undocumented package.

Thank you for using atils; it was a good learning experience.

Getting Started

Installing atils

Installing the latest release of atils

npm i atils
const atils = require("atils");
import atils from "atils";

Installing previous releases of atils

npm i atils@x.y.z
const atils = require("atils");
import atils from "atils";

Using Documentation

There is no documentation for atils. If you'd like to make your own, be my guest.

Utilities List

  • Bitfield Utility
  • Client Utility
  • Collection Utility
  • Console Utility (implements Error Utility)
  • Dataset Utility
  • Date Utility
  • Enum Utility
    • BitEnum (extends EnumParent)
    • FrozenFlagBasedEnum (extends EnumParent, implements ThawedFlagBasedEnum, default)
    • ThawedFlagBasedEnum (extends EnumParent)
  • Error Utility
  • Interface Utility
    • Type Sub-Utility
    • ClassInterface Sub-Utility
  • Merge Utility
  • Placebo Utility

Using Utilities

Importing Utilities

const { UtilityName } = require("atils");

Import Names

const {
    Bitfield,
    Client,
    Collection,
    Dataset,
    Date,
    Enum,
        BitEnum,
        EnumParent,
        FrozenFlagBasedEnum,
        ThawedFlagBasedEnum,
    BaseError,
    ErrorBuilder,
    ErrorSaver,
    Interface,
    InterfaceTypeAny,
    InterfaceTypeSmallInt,
    Merge,
    MKW,
    Type,
    Placebo,

    DefaultClientIntents,
    ConsoleStyles,
    InterfaceTypes,
} = require("atils");

Notice Board

November 11th, 2022

Five days until atils is one year old! Also, atils@3.0.0 is in development. Will receive many heavy changes, as well as a fully functional documentation system and intellisense. Documentation will be updated as I work on it, but it will take quite awhile.

January 19th, 2023

I no longer see atils as a "need to be updated" package, since I've found very few bugs when messing with it. Some of the items within atils will still be transferred over to my next project, which will be more aligned with what I'm actively working on. atils was a very nice learning experience, but I need to move onto other things so that I don't become stuck. Thanks for using my package for the past year and two months; though I won't be updating it anymore, I'll probably continue using it until I make something better (nah that console still hella good, will probably be using that still). If, at any point in the future, I do decide to resume development on atils, it will most likely take a heavy change in direction than it has, especially when it comes to dependencies.

Changelog

atils@2.0.1

  • Fixed an issue where BitEnums will only store Functions.

atils@2.0.2

  • Fixed an issue with the Type and Interface classes not detecting Arrays and Objects properly.

atils@2.0.3

  • Fixed an issue with the Type class throwing incorrect errors, and not properly detecting statements.

atils@2.0.4

  • Fixed an issue with the Console class throwing errors when parameters are provided.
  • Fixed an issue with the Console class not properly logging messages from the .log() method.
  • Deprecated the BaseError class.
  • Deprecated the EnumParent class (no, the three Enums that we have are not deprecated).

atils@2.0.5

  • Added the setName() method to the Console class. Sets the Command Prompt's name.

atils@2.0.6

  • Added a little bit of the IntelliSense for the first couple utilities (will slowly be rolled out).
  • Renamed the Interface to Class Interface, implying it is primarily used for Classes.
  • Added the Object Interface, implying it is used for Objects.

    Usage Example

    const { Interface } = require("atils");
    const interface = new Interface({
       hello: String, // The required item "hello" will be a String.
       _world: { // The optional item "world" will have the following items.
           type: String, // The optional item "hello" will be a String.
           default: "world!", // The default value for this optional item will be "world!".
       }
    });
  • Changed the default export for Interface to the Object Interface, rather than the Class Interface.

atils@2.0.7

  • Fixed a minor naming issue with the Class Interface.
  • Fixed a minor issue with the README file.

atils@2.0.7-b

  • Failed to fix a previous issue.

atils@2.0.8

  • You can now use Arrays as Types in the Object Interface.

    Usage Example

    const { Interface } = require("atils");
    const interface = new Interface({
      array: [String],
    });
    
    interface.applyTo({
      array: ["Hello world!"],
    });
    
    interface.applyTo({
      array: [1], // throws an error. 
    });
  • Added MKW as an export in atils.
    • The MKW package will be updated if atils' version of it receives an update.
  • Deprecated the Dataset Class (just use a Bit Enum).

atils@2.0.9

  • Fixed an issue with the MKW import.
  • Fixed an issue with the Console Class.

atils@2.0.10

  • atils discontinuation notice.

Resources

Discontinued.

Thank you for using atils.

2.0.10

1 year ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.9

1 year ago

2.0.8

2 years ago

2.0.7-b

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.5-fix

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.0.2

2 years ago

1.1.0

2 years ago

1.0.9-stable

2 years ago

1.0.9

2 years ago

1.0.9--beta

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.1.4

2 years ago

1.0.5

2 years ago

1.1.3

2 years ago

1.0.4

2 years ago

1.1.2

2 years ago

1.0.3

2 years ago

1.1.0-build

2 years ago

1.0.9-unstable

2 years ago

1.1.0-stable

2 years ago

1.1.0-1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago