Skip to content

Commit

Permalink
Add prettier configuration (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
  • Loading branch information
SferaDev authored Feb 8, 2024
1 parent fe51e90 commit 5cad19b
Show file tree
Hide file tree
Showing 26 changed files with 6,289 additions and 80 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
module.exports = {
extends: ['eslint:recommended', 'prettier', 'plugin:mdx/recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2015
},
settings: {
'mdx/code-blocks': true,
'mdx/language-mapper': {}
},
ignorePatterns: ['node_modules/', 'package.json', 'pnpm-lock.yaml'],
rules: {
'react/jsx-no-undef': 'off'
}
};
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/node_modules
/.pnp
.pnp.js
.eslintcache
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
pnpm-lock.yaml
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
tabWidth: 2,
singleQuote: true,
semi: true,
trailingComma: 'none',
printWidth: 120,
endOfLine: 'auto'
};
4 changes: 4 additions & 0 deletions .prettierrc.precommit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
...require('./.prettierrc'),
organizeImportsSkipDestructiveCodeActions: false
};
13 changes: 6 additions & 7 deletions 2023-03-10.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ date: 03-10-2023

- Fixed pasting behaviour when a cell is in edit more. It used to overwrite the whole cell, now it correctly appends to the existing text.
- Several fixes around column constraints:
- Users can set default value without setting `notNull: true`
- Users can enter invalid constraint combinations but are presented with a clear error about what they did wrong.
- Switching column type resets unique, `notNull` and default value to an allowed value if it's unsupported.
- Users can set default value without setting `notNull: true`
- Users can enter invalid constraint combinations but are presented with a clear error about what they did wrong.
- Switching column type resets unique, `notNull` and default value to an allowed value if it's unsupported.
- Prevent two table cells from being selected in some scenarios. There was a bug when data had changed in the grid and you let your browser tab lose and regain focus.
- Fixed copy paste null string values in table
- More minor cell editing bug fixes
- Small design issues cleanup across the app
- right input padding for table inputs
- clickable table headers in the schema page
- scrollable branch list
- right input padding for table inputs
- clickable table headers in the schema page
- scrollable branch list

<ArticleImage
src="https://github.com/xataio/mdx-changelog/raw/main/images/schematitle.png"
Expand All @@ -44,4 +44,3 @@ date: 03-10-2023
#### Blog posts

- [Semantic or keyword search for finding ChatGPT context. Who searched it better?](https://xata.io/blog/keyword-vs-semantic-search-chatgpt)

4 changes: 2 additions & 2 deletions 2023-03-24.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const users = await xata.db.Users
```

- Fix: in some cases the context passed to ChatGPT was smaller than our target number of tokens, resulting in low quality answers. This is now fixed.
- Fix: drastically reduce the chance of `too_many_nested_clauses` ****exception on the search and ask endpoints. Also improved the error message to guide towards a correct solution.
- Fix: drastically reduce the chance of `too_many_nested_clauses` exception on the search and ask endpoints. Also improved the error message to guide towards a correct solution.

#### UI

Expand All @@ -34,7 +34,7 @@ const users = await xata.db.Users

- Added support for the vector column to the `xata schema edit` command.

**********************Blog posts**********************
#### Blog posts

- [Semantic Search With Xata, OpenAI, TypeScript, and Deno](https://xata.io/blog/semantic-search-openai-typescript-deno) - A light introduction to using the OpenAI API from TypeScript for a real use case.
- [Xata and Auth.js on 2 Next.js Apps: App Directory and Pages Directory](https://xata.io/blog/xata-authjs-nextjs) - A tutorial showing you how to use the Xata Auth.js adapter to easily implement authentication in Next.js
Expand Down
4 changes: 2 additions & 2 deletions 2023-04-16.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ date: 04-16-2023
#### UI

- Better confirmation messages when deleting columns or tables. The names of the affected column and table are now included in the confirmation, for example:

<ArticleImage
src="https://raw.githubusercontent.com/xataio/mdx-changelog/main/images/table-delete.png"
width="826"
Expand All @@ -29,4 +29,4 @@ date: 04-16-2023
#### Blog posts

- Community spotlight: [The story behind xata-go, a Go SDK for Xata](https://xata.io/blog/community-spotlight-xata-go-sdk)
- [Search three ways with Xata](https://xata.io/blog/xata-partial-fuzzy-semantic-search). This pairs up with the [5 minutes video](https://youtu.be/Y554vsvDO7s) that visually demonstrates the differences between partial match, fuzzy free-text-search, and semantic/similary search.
- [Search three ways with Xata](https://xata.io/blog/xata-partial-fuzzy-semantic-search). This pairs up with the [5 minutes video](https://youtu.be/Y554vsvDO7s) that visually demonstrates the differences between partial match, fuzzy free-text-search, and semantic/similary search.
2 changes: 1 addition & 1 deletion 2023-04-21.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ date: 04-21-2023

#### Blogs

- Community spotlight: [Accelerating Time-to-Market for Ecommerce Platform Batchoop](https://xata.io/blog/ecommerce-platform-batchoop)
- Community spotlight: [Accelerating Time-to-Market for Ecommerce Platform Batchoop](https://xata.io/blog/ecommerce-platform-batchoop)
2 changes: 1 addition & 1 deletion 2023-05-05.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Blog posts:

- [XataForm is here!](https://xata.io/blog/xataform-is-here) - New open-source project to deal with your forms, survey and quizzes!
- [Modern database workflows with GitHub, Vercel, Netlify and Xata](https://xata.io/blog/workflow-github-vercel-netlify-xata) - Announce blog post for the new Xata workflow.
- [End-to-end preview deployment workflows with Xata and Vercel](https://xata.io/blog/preview-deployment-vercel-xata) - Showing our deep Vercel integration.
- [End-to-end preview deployment workflows with Xata and Vercel](https://xata.io/blog/preview-deployment-vercel-xata) - Showing our deep Vercel integration.
6 changes: 3 additions & 3 deletions 2023-05-22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ date: 05-22-2023
It is now also possible to filter by these meta-columns.
- Database renames! It sounds simple, but while it was possible to rename almost
anything in Xata, database names were forever. Now you can finally fix that typo
from the first day of your project. Be aware that this impacts the URLs under
from the first day of your project. Be aware that this impacts the URLs under
which the database is available, so it will be a breaking change to your application.
- Transactions: add `failMissing` option for deletes. If you set this flag to true,
- Transactions: add `failMissing` option for deletes. If you set this flag to true,
and the delete operations affects zero records, the transaction will be failed.
- Fix occasional 500 error in the Ask endpoint that happened on particular inputs
- When returning errors about multiple columns, have the columns sorted by name.
Expand All @@ -25,4 +25,4 @@ date: 05-22-2023
- For the Vercel integration, redirect to the main page if the user is signed-in
already. Fixed a couple more issues around the Vercel integration.
- Handle filter, sort and hidden columns when a column is deleted. This fixes some
corner error conditions after a column was deleted.
corner error conditions after a column was deleted.
12 changes: 6 additions & 6 deletions 2023-06-06.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
date: 06-06-2023
---

- Tons of quality-of-life improvements to the `xata init` CLI command, improving the
flow of setup questions, default values, clarifying the wording, and fixes. Make sure
you upgrade soon `npm install -g @xata.io/cli@latest`.
- Tons of quality-of-life improvements to the `xata init` CLI command, improving the
flow of setup questions, default values, clarifying the wording, and fixes. Make sure
you upgrade soon `npm install -g @xata.io/cli@latest`.

<ArticleImage
src="https://github.com/xataio/mdx-changelog/raw/main/images/xata-init-run.png"
Expand All @@ -19,9 +19,9 @@ you upgrade soon `npm install -g @xata.io/cli@latest`.
- Added a new `xata dbs rename` command to the CLI.
- Modified the `xata dbs delete` CLI command to allow for the interactive selection.
- The `createdAt` and `updatedAt` columns are now available for filtering in the search
endpoints as well.
endpoints as well.
- Several improvements to the internal retrying logic which resulted in temporary errors
during scaling events.
during scaling events.
- Fix for adding object columns via update branch schema API.
- Fix replication issue of large vector columns when another column is updated.
- Fix unit selector on the search date boosters.
Expand All @@ -35,4 +35,4 @@ New Blog posts:
New Videos:

- [This Is the Database Workflow I'VE BEEN WAITING FOR!](https://www.youtube.com/watch?v=VrpyWLB3V1c&t=364s&ab_channel=JamesQQuick) by James Quick
- [Absolute speed: SolidJS + Web-Workers](https://www.youtube.com/watch?v=Ll2zt2m5Z5A&ab_channel=Atila)
- [Absolute speed: SolidJS + Web-Workers](https://www.youtube.com/watch?v=Ll2zt2m5Z5A&ab_channel=Atila)
6 changes: 3 additions & 3 deletions 2023-06-19.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ date: 06-19-2023
/>

- Added `createdAt` and `updatedAt` fields to the search API responses metadata.
- Removed plural versions of the CLI commands (e.g. “workspaces”, “branches”). The singular version of them has been recommended for a while now, and its time to remove the deprecated commands.
- Made access to the read replicas publicly available for the /query and /summarize endpoints. Change the consistency level to eventual to leverage this functionality.
- Removed plural versions of the CLI commands (e.g. “workspaces”, “branches”). The singular version of them has been recommended for a while now, and it's time to remove the deprecated commands.
- Made access to the read replicas publicly available for the /query and /summarize endpoints. Change the consistency level to eventual to leverage this functionality.
- It is now possible to explicitly address the ID column of a linked record in filters. This was already possible by using the table name, this adds the option of addressing as `table.id`.
- Fixed deleting records that have `:` in their ID columns.
- Fixed UI issue where the Filter menu item was not hidden when clicking outside of it.
Expand All @@ -29,4 +29,4 @@ date: 06-19-2023
- Improve the `xata push` error message if the target branch is ahead of the migration list.
- Fixed failed migrations leaving the database branch in a state where new migrations were blocked until manual intervention.
- Accessibility improvement: Fixed area-label on button menu in database header
- Fixed “Learn more” link in the code snippet for the CLI.
- Fixed “Learn more” link in the code snippet for the CLI.
34 changes: 17 additions & 17 deletions 2023-07-03.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ date: 07-03-2023
- The Xata GitHub integration now triggers the branch creation as soon as a commit is pushed to a new branch, while before it was waiting for the Pull Request to be open. What this means, in practice, is that the Xata branch is created before the Vercel build in almost all cases, which means you are no longer getting a red Vercel build on the first try. 🟢
- When adding a column, a nice flashing effect shows where your new column has landed:

<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/add_column_flash.mp4"
width="1024"
height="574"
<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/add_column_flash.mp4"
width="1024"
height="574"
/>

- For another quality of life improvement, added type-ahead search for selecting columns for filtering and sorting.
- For another quality of life improvement, added type-ahead search for selecting columns for filtering and sorting.

<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/column_typeahead.mp4"
width="1024"
height="392"
<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/column_typeahead.mp4"
width="1024"
height="392"
/>

- Similarly, when you need to select a table to create a link relation, you can now type to quickly find the table you need. No more scrolling thrown tens of tables.

<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/link_column_select.mp4"
width="1024"
height="574"
<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/link_column_select.mp4"
width="1024"
height="574"
/>

- The [TypeScript SDK](https://github.com/xataio/client-ts) and [Python SDK](https://github.com/xataio/xata-py) emit server messages to the logs. For example if you are invoking the get columns of a table API, a message about the object deprecation will be added to the client logs. This creates a communication channel to provide meta information to the client side.
Expand All @@ -40,4 +40,4 @@ date: 07-03-2023
New Blog posts:

- [Postgres schema changes are still a PITA](https://xata.io/blog/postgres-schema-changes-pita)
- [Server Actions, databases, and the future of data handling](https://xata.io/blog/server-actions-data-handling)
- [Server Actions, databases, and the future of data handling](https://xata.io/blog/server-actions-data-handling)
13 changes: 5 additions & 8 deletions 2023-07-18.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ date: 07-18-2023
---

- Our docs just got a major face lift, matching the rest of our branding. Other improvements include:
- The documentation content is now [public on GitHub](https://github.com/xataio/mdx-docs) and open for community edits.
- Website search was rebuilt and will now output results from the blog alongside documentation.
- Grammar and syntax highlighting in code snippets are improved.
- The documentation content is now [public on GitHub](https://github.com/xataio/mdx-docs) and open for community edits.
- Website search was rebuilt and will now output results from the blog alongside documentation.
- Grammar and syntax highlighting in code snippets are improved.

![A new style for the Xata documentation](images/2023-07-18-01-docs.png)

Expand All @@ -16,10 +16,7 @@ date: 07-18-2023
- The `ask` endpoint that enables you to easily build ChatGPT experiences on your data is now conversational. With the latest update, you can now [ask follow up questions](https://xata.io/docs/api-reference/db/db_branch_name/tables/table_name/ask/session_id#ask-follow-up-questions-of-your-data) to your data.
- When deleting a workspace, delete based on the name of the workspace instead of the workspace ID.

<ArticleVideo
platform="html"
src="https://github.com/xataio/mdx-changelog/raw/main/images/2023-07-18-02-delete.mov"
/>
<ArticleVideo platform="html" src="https://github.com/xataio/mdx-changelog/raw/main/images/2023-07-18-02-delete.mov" />

- Display an object deprecation notice where appropriate throughout the Xata app

Expand All @@ -31,4 +28,4 @@ date: 07-18-2023
New blog posts:

- [Connecting data sources to Xata with Airbyte and Zapier integrations](https://xata.io/blog/connecting-data-sources-xata-airbyte-zapier-integrations)
- [Create an advanced search engine with PostgreSQL](https://xata.io/blog/postgres-full-text-search-engine) (#1 on Hacker News 🎉)
- [Create an advanced search engine with PostgreSQL](https://xata.io/blog/postgres-full-text-search-engine) (#1 on Hacker News 🎉)
4 changes: 2 additions & 2 deletions 2023-08-01.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ date: 08-01-2023

- CSV Import CLI improvements: CSV Import via the CLI is now ~2.5x faster and infers column types better. We're also updating our CSV import UI - watch this space for updates.
- As announced in the previous edition of the Changelog, the search API now returns the total number of hits. The TypeScript SDK now supports retrieving this total count and it is also displayed in the Xata UI.

![Search total count](images/search-total-count.png)

- The TypeScript SDK now supports [sessions for the Ask endpoint](https://xata.io/docs/typescript-client/ask#asking-follow-up-questions). This means it's now possible to ask follow-up questions when using ChatGPT to get answers from your database.
- Usability improvement: When adding a new table or a new column, invalid characters are blocked at the input level, saving you time.
- Fixed horizontal scrolling and improved the word warping in the Playground.
Expand Down
11 changes: 5 additions & 6 deletions 2023-09-04.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ Discover the latest enhancements and feature updates at Xata:
position="center"
/>

- **Support for JSON ingestion** - Basic support for [JSON column](https://xata.io/blog/json-column-type) types is now available, expanding the range of data formats that Xata.io can handle.
- **Improved data traversal with reverse links** - We now provide [column expressions](https://xata.io/docs/concepts/data-model#links-and-relationships) in the query endpoint for more precise projection definitions with JSON objects. The new Xata querying syntax makes it possible to [traverse the N:1 relationships backwards and solves the N + 1 problem](https://xata.io/blog/navigating-many-to-one).
- **Support for JSON ingestion** - Basic support for [JSON column](https://xata.io/blog/json-column-type) types is now available, expanding the range of data formats that Xata.io can handle.
- **Improved data traversal with reverse links** - We now provide [column expressions](https://xata.io/docs/concepts/data-model#links-and-relationships) in the query endpoint for more precise projection definitions with JSON objects. The new Xata querying syntax makes it possible to [traverse the N:1 relationships backwards and solves the N + 1 problem](https://xata.io/blog/navigating-many-to-one).
- **The Xata Python SDK is in GA** - Our [Python SDK](https://xata.io/docs/sdk/python/overview) is now in general availability. We're excited to release version 1.0.0 of our Python SDK, offering a more stable and feature-rich experience for developers.
- **Direct SQL access** - We've introduced support for [SQL](https://xata.io/docs/sdk/sql/overview) (Postgres dialect) over HTTP, with a focus on safety.
- To ensure secure SQL access to Xata databases, we've developed a dedicated SQL proxy. The proxy works alongside the Xata data API, enhancing security between Postgres, routing, and authentication components.
- We have plans to further expand SQL support and introduce the Postgres Wire protocol for maximum compatibility.
- **Direct SQL access** - We've introduced support for [SQL](https://xata.io/docs/sdk/sql/overview) (Postgres dialect) over HTTP, with a focus on safety.
- To ensure secure SQL access to Xata databases, we've developed a dedicated SQL proxy. The proxy works alongside the Xata data API, enhancing security between Postgres, routing, and authentication components.
- We have plans to further expand SQL support and introduce the Postgres Wire protocol for maximum compatibility.
- **New integrations** - Xata now offers integrations with [LangChain](https://xata.io/docs/integrations/langchain), the ORM [Drizzle](https://xata.io/docs/integrations/drizzle), and the TypeScript builder [Kysley](https://xata.io/docs/integrations/kysley), expanding the range of tools and possibilities for developers.
- **Xata's new framework guides** - Our getting started guides for the frameworks [Astro](https://xata.io/docs/getting-started/astro), [Next.js](https://xata.io/docs/getting-started/nextjs), [Nuxt](https://xata.io/docs/getting-started/nuxt), [Remix](https://xata.io/docs/getting-started/remix), [SolidStart](https://xata.io/docs/getting-started/solidstart), and [SvelteKit](https://xata.io/docs/getting-started/sveltekit) have undergone a significant overhaul. These getting started guides provide a more user-friendly introduction to Xata. Explore the guides to learn how to use the Xata CLI, create databases, define schemas, import CSV data, and make the most of querying, filtering, and full-text fuzzy search capabilities.


### Blog posts

Explore Xata's recent blog posts to stay informed. Subscribe to the [blog](https://xata.io/blog) to get the latest content delivered to your inbox. Here are some of our recently published posts:
Expand Down
Loading

0 comments on commit 5cad19b

Please sign in to comment.