js.foresight 3.1.0 → 3.1.1

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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
10
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
- [![Demo](https://img.shields.io/badge/demo-live-blue)](https://foresightjs.com/#playground)
11
+ [![Demo](https://img.shields.io/badge/demo-live-blue)](https://foresightjs.com#playground)
12
12
 
13
13
  ForesightJS is a lightweight JavaScript library with full TypeScript support that predicts user intent based on mouse movements, scroll and keyboard navigation. By analyzing cursor/scroll trajectory and tab sequences, it anticipates which elements a user is likely to interact with, allowing developers to trigger actions before the actual hover or click occurs (for example prefetching).
14
14
 
@@ -121,9 +121,11 @@ For a detailed technical explanation of its prediction algorithms and internal a
121
121
 
122
122
  ## Providing Context to AI Tools
123
123
 
124
- Since ForesightJS is a relatively new and unknown library, most AI assistants and large language models (LLMs) may not have comprehensive knowledge about it in their training data. To help AI assistants better understand and work with ForesightJS, you can provide them with context from our [llms.txt](https://foresightjs.com/llms.txt) page, which contains structured information about the library's API and usage patterns.
124
+ ForesightJS is a newer library, so most AI assistants and LLMs may not have much built-in knowledge about it. To improve their responses, you can provide the following context:
125
125
 
126
- Additionally, every page in the documentation is available in markdown format (try adding .md to any documentation URL). You can share these markdown files as context with AI assistants, though all this information is also consolidated in the llms.txt file for convenience.
126
+ - Use [llms.txt](https://foresightjs.com/llms.txt) for a concise overview of the API and usage patterns.
127
+ - Use [llms-full.txt](https://foresightjs.com/llms-full.txt) for a full markdown version of the docs, ideal for AI tools that support context injection or uploads.
128
+ - All documentation pages are also available in markdown. You can view them by adding .md to the end of any URL, for example: https://foresightjs.com/docs/getting_started.md.
127
129
 
128
130
  # Contributing
129
131
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js.foresight",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Predicts mouse trajectory to trigger actions as users approach elements, enabling anticipatory UI updates or pre-loading. Made with vanilla javascript and usable in every framework.",
5
5
  "exports": {
6
6
  ".": {
@@ -50,7 +50,7 @@
50
50
  "happy-dom": "^18.0.1",
51
51
  "jsdom": "^26.1.0",
52
52
  "tslib": "^2.8.1",
53
- "tsup": "^8.0.0",
53
+ "tsup": "^8.5.0",
54
54
  "typescript": "^5.8.3",
55
55
  "vitest": "^3.2.4"
56
56
  },