Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@casual-simulation/aux-records

Package Overview
Dependencies
Maintainers
2
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casual-simulation/aux-records - npm Package Versions

1
20

3.2.4-alpha.5940763320

Diff

kallyngowdyyeti
published 3.2.4-alpha.5857788915 •

kallyngowdyyeti
published 3.2.3 •

Changelog

Source

V3.2.3

Date: 7/31/2023

:bug: Bug Fixes

  • Fixed an issue where incorrect subscription features would be shown after a user subscribed.
kallyngowdyyeti
published 3.2.2 •

Changelog

Source

V3.2.2

Date: 7/31/2023

:rocket: Improvements

  • Added the ai.chat() and ai.generateSkybox() functions as an easy way to interface with OpenAI's Chat API and Blockade Lab's API.
    • When configured on the server, users will have the ability to interface with an OpenAI GPT model without having to manage or store their own OpenAI API Key.
    • They will also be able to interface with Blockade Lab's API without having to manage their own API key.
    • ai.chat() accepts two parameters:
      • message - This is the message (string or object) or list of messages (objects) that the AI model should respond to.
      • options - Is optional and are the options that should be used for the operation.
      • Returns a promise that resolves when the AI has responded to the message(s). The resolved value will be a string if message was a string. Otherwise, it will be an object.
      • See the documentation for more info.
    • ai.generateSkybox() accepts three parameters:
      • prompt - This is the prompt that tells the AI what the generated skybox should look like.
      • negativePrompt - Is optional and tells the AI what the generated skybox should not look like.
      • options - Is optional and are the options that should be used for the operation.
      • Returns a promise that resolves when the AI has generated the skybox. The resolved value will be a string containing the URL that the generated image is stored at.
      • See the documentation for more info.
    • (DevOps Only) To configure AI Chat features, use the following SERVER_CONFIG properties:
      • openai - This should be an object with the following properties:
        • apiKey - The OpenAI API Key that should be used for requests.
        • maxTokens - The maximum number of tokens that can be used in a request. If omitted, then there is no limit.
      • blockadeLabs - This should be an object with the following properties:
        • apiKey - The Blockade Labs API Key that should be used for requests.
      • ai - This should be an object with the following properties:
        • chat - Optional. If omitted, then AI Chat features will be disabled. It should be an object with the following properties:
          • provider - Set this to "openai". This tells the server to use OpenAI for ai.chat().
          • defaultModel - Set this to the model that should be used by default. For OpenAI, see this list of supported models.
          • allowedModels - The array of model names that are allowed to be used by ai.chat().
          • allowedSubscriptionTiers - The array of subscription tiers that enable ai.chat() for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to use ai.chat(). Set this to true to allow all users (even ones that are not subscribed).
        • generateSkybox - Optional. If omitted, then AI Skybox features will be disabled. It should be an object with the following properties:
          • provider - Set this to "blockadeLabs". This tells the server to use Blockade Labs for ai.generateSkybox().
          • allowedSubscriptionTiers - The array of subscription tiers that enable ai.generateSkybox() for a user. If a user is not subscribed to one of the listed tiers, then they will not be allowed to use ai.generateSkybox(). Set this to true to allow all users (even ones that are not subscribed).
  • Added the bytes.toBase64Url(data, mimeType?) and bytes.fromBase64Url(url) functions.
    • These functions are useful working with Data URLs from binary data or a Base 64 string.
    • bytes.toBase64Url(data, mimeType?) - Creates a Data URL using the given binary data or Base 64 string, and includes the given MIME Type in the output.
      • data - Is a Uint8Array or string and is the data that should be included in the URL.
      • mimeType - Is optional, and is the MIME Type that the data represents.
    • bytes.fromBase64Url(url) - Creates a Blob from the given data URL. The resulting blob will have a type matching the MIME Type stored in the Data URL, and binary data equal to the decoded base 64.
      • url - The string representing the data URL.
kallyngowdyyeti
published 3.2.2-alpha.5694783443 •

kallyngowdyyeti
published 3.2.2-alpha.5685728183 •

kallyngowdyyeti
published 3.2.2-alpha.5675659631 •

kallyngowdyyeti
published 3.2.1 •

Changelog

Source

V3.2.19

Date: 4/1/2024

:boom: Breaking Changes

  • Forced all scripts to compile in Strict mode.
    • Strict mode restricts some functions and features of JavaScript to help catch common mistakes.
    • Some examples:
      • The implements, interface, let, package, private, protected, public, static, yield keywords are no longer allowed to be used as identifiers.
      • Assignments to non-writable globals (Infinity, undefined, etc.) are no longer allowed.
      • Assignments to non-writable properties now throws a TypeError.
      • It is no longer allowed to set properties on a primitive value.
      • Attempts to delete a non-configurable or otherwise undeletable property now throws a TypeError.
      • Duplicate parameter names are no longer allowed.
      • Numbers literals are no longer allowed to start with 0.
        • This is because sloppy mode allowed otcal literals to be any number starting with 0 and having every digit less than 8
        • If you weren't careful, it was easy to accidentally write an octal number. e.g.
        let num = 0123; // This does not equal 123, but is actually 83 in decimal
        
  • Enabled preact/compat for custom apps.
    • This change probably won't break anything, but I can't exactly be sure.
    • preact/compat improves Preact compatibility with React behavior and features.
    • See the Preact website for more information.

:rocket: Features

  • Added the ability to specify separate Redis servers for websocket connections, inst data, caches, and rate limits.
  • Added the os.appCompat API.
    • It is an object that contains APIs from preact/compat.
    • This includes, but is not limited to, Suspense, lazy(), createPortal(), forwardRef(), memo(), and PureComponent.
  • Added createRef() and createContext() to os.appHooks.
  • CasualOS will now send @onGridClick, @onGridUp, and @onGridDown shouts to all loaded insts.

:bug: Bug Fixes

  • Fixed an issue where attached debuggers would automatically get detached once a portal is opened or closed.
  • Fixed an issue where the registration flow would not always check display names properly.
  • Improved wording for some registration errors.
  • Fixed an issue where it was possible for a session to not be synced while the session itself believes that it is connected.
  • Fixed an issue where using JSX syntax would show random syntax errors in the multiline code editor.
  • Fixed an issue where it was possible for CasualOS to waste resources by loading the portals for an inst multiple times.
  • Fixed an issue where the miniGridPortal slider bar would interfere with the menuPortal.
kallyngowdyyeti
published 3.2.1-alpha.5649263218 •

kallyngowdyyeti
published 3.2.1-alpha.5649086091 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc