# What's New

## Version 4.0.5

* Package is also available now in GitHub Package Registry
* Renamed package to `@ranndev/angularjs-store`

## Version 4.0.1

### Lighten the bundle size again :zap:&#x20;

By migrating the package bundler to [Rollup](https://rollupjs.org), we reduced the bundle size down to **1.63KiB** (almost a half).

### Improve development warnings :woman\_mechanic::man\_mechanic:

We can now see a warning logs on console if we try to use the package incorrectly. Only on development.

## Version 4.0.0

### Typescript types support

You can now use the AngularJS Store using Typescript and get a code-completion for the store's state and actions.

### Smaller bundle size

From 20kb in version 3, it's now reduces to 3kb.

### Wild card action query

If you want to set a hook for all available actions, you can now use a wild card action query instead of using an array of store action or complex regular expression.

### Breaking changes

An array hook callback in `hook` method is now unsupported in version 4. You can only use the `hook` method with a single callback function like so

{% code title="hook.ts" %}

```typescript
yourStore.hook('SOME_ACTION', (state: State, initialRun: boolean) => { ... })
```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://angularjs-store.gitbook.io/docs/whats-new.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
