Skip to content

Releases: sveltinio/sveltin

v0.11.0

22 Feb 13:33
9047698
Compare
Choose a tag to compare

v0.11.0 (2023-02-22)

Full Changelog

Read the latest Release Notes.

🚀 New Features

  • sveltin.json file: to simplify settings across parts of the project;
  • deploy command takes into account if adapter-static has been configured to output pages and assets in different folders. In this case, make sure to reflect them to sveltin.json;
  • migrate command: added to easily upgrade/migrate existing sveltin project to the latest sveltin release;
  • completion command: added to generate the autocompletion script for the specified shell (bash, zsh, fish, powershell);
  • active helps: by using TAB after the command name shows a message about params or flags;
  • mdsvex.config.js: set a layout component for pages created by running sveltin new page command;
  • SEO keywords per page.

Bug Fixes

  • mdsvex.config.js: missed comma after rehypeSlug usage;
  • pages created as "markdown" were buggies;
  • the execution of the commands after the project creation takes into account the theme choice. So, if you choose a "blank" theme when creating the project, by running commands to create pages, resources etc. consider that choice and scaffold the right artifacts without the need to cleanup code coming from the "sveltin" theme;
  • logo on Footer.svelte when sveltin theme not properly loaded;
  • import string for ScrollToTopButton component on +layout.svelte when sveltin theme;

Breakings

  • add content command: consistent usage compared to others by introducing the --to flag. The new way it works is:

    sveltin add content <title> --to <resource>

  • new page command: set the language for the page content: --svelte or --markdown. The new way it works is:

    sveltin new page about --markdown

🔧 Code Refactoring

  • removing dependency from gopkg.in/yaml.v3 and make use of viper capabilities;
  • removing dependency from gopkg.in/github.com/vbauerster/mpb/v8;
  • deploy: make use of sveltin.json and tui redesigned (the progressbar component is now the one provided by prompti);
  • renaming SveltinConfig struct as SveltinSettings;
  • renaming ProjectData struct as EnvProductionData;
  • fileNotFound error now display the file path;
  • cmds: prompt handlers moved to tui/prompts;
  • sveltin theme: simplified components structure and styles. Lint style files with stylelint;

Dependencies Updated

  • update charmbracelet/bubbles to v0.15.0
  • update charmbracelet/bubbletea to v0.23.2
  • update spf13/viper to v1.15.0
  • update golang.org/x/text to v0.7.0

Chores

  • adding empty line at the end of commands chain log
  • app.html: remove prism.js loading. mdsvex includes it
  • consistent message formats across commands
  • prepend svelte-kit sync run to the build script
  • removing unused imports from page and slug svelte files
  • detecting package manager message when no npmClient flag used only
  • tuning text colors and migrate message updated
  • slug.svelte.gotxt: format date metadata with time datetime tag
  • slug.ts.gotxt: formatting - avoid blank lines
  • svelte.config.js: postcss prop for preprocessor removed when vanillacss
  • component ScrollToTopButton added to the layout when blank theme
  • validation added to the project settings file
  • @sveltejs/kit updated to v1.8.3;
  • @sveltejs/adapter-static updated to v2.0.1;
  • vite updated to v4.1.4;
  • overall npm deps updated (typescript, tslib, eslint,vite-plugin-svelte etc.);
  • removing unused imports from page and slug svelte files;
  • go deps:
  • markup:
    • tuning styles for OL;
    • utility functions added to render colored text-
  • package.json:
    • remark-previewremoved;
    • remark-slugremoved;
    • mdast-util-to-string removed;
    • unist-util-visit removed;
    • remark-external-links replaced by rehype-external-links;
  • vite.config.ts: prevent @indaco/svelte-iconoir from being externalized for SSR.

📖 Documentation

  • commands:
    • consistent short help messages;
    • migrate added;
    • add content flags.

Pull Requests

  • Merge pull request #126 from js-deps-update
  • Merge pull request #127 from go-deps-update
  • Merge pull request #128 from mdsvex
  • Merge pull request #129 from project-settings
  • Merge pull request #130 from upgrade-cmd
  • Merge pull request #131 from sveltekit-next-538
  • Merge pull request #132 from theme-config-migration
  • Merge pull request #133 from time-datetime
  • Merge pull request #134 from sveltekit-update
  • Merge pull request #135 from remove-unused-deps
  • Merge pull request #136 from refactor-upgrade-cmd
  • Merge pull request #137 from refactor-gen-sitemap
  • Merge pull request #138 from refactor-deploy-cmd
  • Merge pull request #139 from refactor-cmd-prompts
  • Merge pull request #140 from migration-factory
  • Merge pull request #141 from fix-add-content-cmd
  • Merge pull request #142 from content-sample-cover
  • Merge pull request #143 from active-helps

v0.10.1

04 Oct 09:35
Compare
Choose a tag to compare

Fixed Bugs

  • set prerender to false for api index and slug files

Chores

  • sveltekit updated to next.508
  • remove unused file (config/templates.go)
  • go deps updated
  • npm deps updated

Pull Requests

  • Merge pull request #122 from deps-update
  • Merge pull request #123 from fix-api-prerender
  • Merge pull request #124 from kit-508

Full Changelog: v0.10.0...v0.10.1

v0.10.0

16 Sep 14:21
Compare
Choose a tag to compare

Fixed Bugs

  • api endpoints were still on old sveltekit routing mechanism. Updated and fixed an issue when building the project due to prerender=true on those files. fallback: '200.html' on static adapter configuration made the magic.

🚀 New Features

  • new resource cmd allows to specify the group layout name according to the sveltekit Advanced layouts by passing the --group flag

    sveltin new resource testimonials --group marketing
  • new resource cmd allows to specify if a different layout for the slug pages must be created in addition to the one for the index page.

    sveltin new resource posts --slug

🔧 Code Refactoring

  • config.TemplateData struct makes use of individual struct for each artifact template data
  • file templates updated accordingly
  • generate commands (menu, rss, sitemap) simplified and updated to work for grouped layout too
  • GetAllRoutes refactored to use afero.Walk

Chores

  • sveltekit updated to next.483
  • go deps updated
  • uniform function names

Pull Requests

  • Merge pull request #120 from kit-advanced-layout

Full Changelog: v0.9.1...v0.10.0

v0.9.1

06 Sep 14:48
722867d
Compare
Choose a tag to compare

Fixed Bugs

  • make generated page variable reactive

Chores

  • sveltekit updated to next.472
  • upgrade minor npm deps
  • indirect go deps added to generate command docs

📖 Documentation

  • cmds: uniforming cobra help strings for commands

Pull Requests

  • Merge pull request #110 from cobra-doc-deps
  • Merge pull request #111 from page-flags
  • Merge pull request #112 from content-flags
  • Merge pull request #113 from update-minor-npm-deps
  • Merge pull request #114 from uniforming-help-messages
  • Merge pull request #115 from fix-page-variable
  • Merge pull request #116 from sk-next.472

Full Changelog: v0.9.0...v0.9.1

v0.9.0

05 Sep 14:57
a0e8e09
Compare
Choose a tag to compare

Fixed Bugs

  • variable name when creating new resource with name like customers/projects
  • connection.go: golangci SA1019
  • layout: filename fixed to the new +layout.svelte when unstyled project
  • lib.gotxt: unused param removed from list function

🚀 New Features

  • sveltekit: updated to next.470 with adapter-static.42

Breakings

  • init command added (alias create) to scaffold a new project instead of new
  • new command is now used only to create pages and resources (routes)
  • add command added to create new content and metadata

🔧 Code Refactoring

  • All prompts are now based on @charmbracelet bubbletea and lipgloss through sveltinio/prompti package
  • logger: externalised through sveltinio/yinlog based on @charmbracelet lipgloss
  • drop dependency from manifoldco/promptui
  • errors: styled
  • themes: make embed themes folder structure more logical
  • user messages styles
  • drop dependency from jww
  • moving pkgs to the right place -> internal
  • lib files renamed as load<Resource> instead of api<Resource>

⚙️ CI

  • github actions updated
  • test.yml: updated to run tests against multiple OS and go versions
  • Earthfile: updated include pkg folder

Chores

  • upgrade github.com/vbauerster/mpb to v8
  • upgrade github.com/jlaffaye/ftp to the latest version
  • error page (+error.svelte) added over project creation
  • remove warnings about file is not gofmtd
  • cleanup console log
  • move CliVersion string to new version cmd
  • renaming internal/styles package as internal/markup
  • move builder, composer, css and pathmaker from pkg to internal
  • go deps updated
  • go.mod: tidy
  • npmc: handle Desc as addition struct field
  • package.json: svelte-kit sync added to avoid warnings on dev and check
  • wrapper.go: golint ok

📖 Documentation

  • README: updated to reflect cmd changes
  • cmds: commands help messages updated, typos fixed for add and new cmds help messages
  • newResource: typo fixed in code comment

Pull Requests

  • Merge pull request #88 from sveltinio/typos-readme
  • Merge pull request #89 from sveltinio/rename-lib-files
  • Merge pull request #90 from sveltinio/fix-earthfile
  • Merge pull request #91 from sveltinio/refactor-user-prompts
  • Merge pull request #92 from sveltinio/refactor-styling-errors
  • Merge pull request #93 from sveltinio/refactor-unified-logging
  • Merge pull request #94 from sveltinio/rename-styles-markup
  • Merge pull request #95 from sveltinio/externalise-tui-prompts
  • Merge pull request #96 from sveltinio/externalise-logger
  • Merge pull request #97 from sveltinio/refactor-pkg-internal
  • Merge pull request #98 from sveltinio/no-jww
  • Merge pull request #99 from sveltinio/typos-comments-npmc
  • Merge pull request #100 from sveltinio/new-kit-routing
  • Merge pull request #101 from sveltinio/fix-layout-filename
  • Merge pull request #102 from sveltinio/add-error-page
  • Merge pull request #103 from sveltinio/reshape-embed-themes
  • Merge pull request #104 from sveltinio/ci-workflows
  • Merge pull request #105 from sveltinio/nested-resources
  • Merge pull request #106 from sveltinio/sveltekit-latest
  • Merge pull request #107 from sveltinio/go-deps
  • Merge pull request #108 from bump-vite-sveltekit

Full Changelog: v0.8.12...v0.9.0

v0.8.12

04 Aug 10:32
Compare
Choose a tag to compare

Fixed Bugs

Chores

  • upgrade to sveltekit next.403

Pull Requests

  • Merge pull request #85 from sveltinio/fix-mdsvex
  • Merge pull request #86 from sveltinio/sveltekit-next.403
  • Merge pull request #87 from sveltinio/typos-readme

Full Changelog: v0.8.11...v0.8.12

v0.8.11

02 Aug 14:09
8d318b2
Compare
Choose a tag to compare

Fixed Bugs

  • import bootstrap variables for v5.2.0
  • ci: test workflow syntax
  • manifest.webmanifest: reference path to manifest.webmanifest file

Chores

  • css libs updated
  • readline as direct dependency
  • go deps updated
  • bump afero to 1.9.2
  • bump sveltekit to next.386
  • app.css: custom prism styles as sample
  • app.html: Remove initial-scale=1 from
  • ci: splitting the lint and test github action workflows
  • package.json: bump sveltekit to next.401 -> removing the prepare command/script
  • vite.config.js: remove the alias to $lib
  • vite.config.js: import defineConfig

Pull Requests

  • Merge pull request #76 from sveltinio/vite-config
  • Merge pull request #77 from sveltinio/no-initial-scale
  • Merge pull request #78 from sveltinio/sk-401-no-prepare
  • Merge pull request #79 from sveltinio/split-lint-test-workflows
  • Merge pull request #80 from sveltinio/update-godeps
  • Merge pull request #81 from sveltinio/update-deps
  • Merge pull request #82 from sveltinio/fix-bootstrap-vars

Full Changelog: v0.8.10...v0.8.11

v0.8.10

16 Jul 08:20
2c6ae7e
Compare
Choose a tag to compare

Fixed Bugs

  • avoid typescript linting errors
  • #68 param matchers name when '-' in resource and metadata name
  • update to sveltekit next.377 with uppercase endpoint methods
  • apiIndex: wrong import string

Chores

  • update to afero 1.9.0
  • unused files for xml generation as endpoints removed
  • uppercase endpoint methods as per sveltekit next.377

Pull Requests

  • Merge pull request #65 from sveltinio/sveltekit-next-377
  • Merge pull request #66 from sveltinio/remove-unused-files
  • Merge pull request #67 from sveltinio/afero-update
  • Merge pull request #69 from sveltinio/fix-matcher-names

Full Changelog: v0.8.9...v0.8.10

v0.8.9

15 Jul 09:47
9c0aeee
Compare
Choose a tag to compare

🔧 Code Refactoring

  • actual work function structure for commands
  • resources and metadata API endpoints now are fully REST. This is really useful during the development. Instead to open a browser, just use curl on the terminal. E.g. curl http://localhost:5173/api/v1/posts/category/webdev

Chores

  • shortening and clearing help messages on commands
  • sveltekit updated to next.375 with Vite3 support
  • git-ghlog config and template updated
  • adapter-static: updated to next.36
  • app.html: make uses of %sveltekit.assets% to reference static files
  • vite.config.js: clearScreen:false to prevent Vite from clearing the terminal

Pull Requests

  • Merge pull request #57 from sveltinio/rest-endpoints
  • Merge pull request #58 from sveltinio/cmds-refactoring
  • Merge pull request #59 from sveltinio/deps-update
  • Merge pull request #60 from sveltinio/sveltekit-assets
  • Merge pull request #61 from sveltinio/vite3
  • Merge pull request #62 from sveltinio/git-chglog-revert
  • Merge pull request #63 from sveltinio/help-messages

Full Changelog: v0.8.8...v0.8.9

v0.8.8

13 Jul 15:56
4a6a38d
Compare
Choose a tag to compare

Changelog

Fixed Bugs

  • svelte-check results with new tsconfig

Chores

  • update svelte-kit to next.371
  • bump cli version to 0.8.8
  • format and lint scripts updated to use their own ignore file
  • defaults.js.ts: semicolon missed

Pull Requests

  • Merge pull request #55 from sveltinio/release-0.8.8
  • Merge pull request #54 from sveltinio/sk-next-371
  • Merge pull request #53 from sveltinio/typescript

Full Changelog: v0.8.7...v0.8.8